나는 와플 1.7 + 스프링 4 + 스프링 보안 3.2 + 타임 리프를 사용하고 있습니다. 내 문제는 fallback 양식 로깅이 실패 할 때 사용자 정의 오류 페이지를 제공 할 수 없다는 것입니다. 이것은 내 구성입니다 : @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/**") .authenticated() .and() .exceptionHandling() .authenticationEntryPoint(negotiateSecurityFilterEntryPoint()) .accessDeniedPage("/access-denied") .and() .addFilterBefore(waffleNegotiateSecurityFilter(), BasicAuthenticationFilter.class); }
사용자가 오프 SNPENGO와 브라우저를 사용하고 잘못된 자격 증명을 입력하면 기본 시스템 (500) 페이지에는 다음과 같은 정보가 나타납니다 봄의 와플 커스텀 에러 페이지
com.sun.jna.platform.win32.Win32Exception: The logon attempt failed. waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken(WindowsAuthProviderImpl.java:134) waffle.servlet.spi.NegotiateSecurityFilterProvider.doFilter(NegotiateSecurityFilterProvider.java:103) waffle.servlet.spi.SecurityFilterProviderCollection.doFilter(SecurityFilterProviderCollection.java:130) ...
(액세스 -denied.html thymeleaf 템플릿)? 지금까지 나는 http://spring.io/blog/2013/11/01/exception-handling-in-spring-mvc에서 모든 것을 시도했지만 성공하지는 못했습니다.