Spring security redirects to page with status code 999
问题 After successful login spring redirects to /error page with the following content { "timestamp" : 1586002411175, "status" : 999, "error" : "None", "message" : "No message available" } I'm using spring-boot 2.2.4 My config: spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp spring.mvc.servlet.load-on-startup=1 spring.mvc.throw-exception-if-no-handler-found=true spring.resources.add-mappings=false @Configuration public class DispatcherContextConfig implements WebMvcConfigurer {