@Override protected void beforeSpringSecurityFilterChain(final ServletContext servletContext) { // Be sure charsetFilters are registered before spring security, otherwise logins will fail in tomcat with non-ascii passwords initCharacterSetFilter(servletContext); insertFilters(servletContext, new UncaughtExceptionFilter(), new MDCInsertingServletFilter(), new UrlRewriteFilter()); }
@Override protected Filter[] getServletFilters() { return new Filter[]{ new MDCInsertingServletFilter(), new HiddenHttpMethodFilter(), new OpenEntityManagerInViewFilter(), new RequestContextFilter(), new SecurityContextPersistenceFilter() }; }