I am creating an API with Spring Boot so wish to disable the /error
mapping.
I have set the following props in application.properties:
s
In my case the problem was with web resources referenced in the header of the login page. Specifically, css was referenced in the header, but did not actually exist in the project.
What might also be helpful, in my WebSecurityConfigurerAdapter
implementation I commented out the body of configure(WebSecurity web)
first, then on trying to login, instead of displaying the above error json my browser's address bar would display the url to the resource causing the problem.