Disable DispatcherServlet shouldHandleFailure

This change broke a Spring Security sample, reverting it.

See gh-13511
pull/14030/merge
Brian Clozel 6 years ago
parent f2511b7fa3
commit ab1f5931a0

@ -98,7 +98,6 @@ public class DispatcherServletAutoConfiguration {
@Bean(name = DEFAULT_DISPATCHER_SERVLET_BEAN_NAME) @Bean(name = DEFAULT_DISPATCHER_SERVLET_BEAN_NAME)
public DispatcherServlet dispatcherServlet() { public DispatcherServlet dispatcherServlet() {
DispatcherServlet dispatcherServlet = new DispatcherServlet(); DispatcherServlet dispatcherServlet = new DispatcherServlet();
dispatcherServlet.setShouldHandleFailure(true);
dispatcherServlet.setDispatchOptionsRequest( dispatcherServlet.setDispatchOptionsRequest(
this.webMvcProperties.isDispatchOptionsRequest()); this.webMvcProperties.isDispatchOptionsRequest());
dispatcherServlet.setDispatchTraceRequest( dispatcherServlet.setDispatchTraceRequest(

Loading…
Cancel
Save