SpringSecurity

    [SpringSecurity] Method 레벨에서 AccessDeniedException 처리하기

    SpringSecurity를 설정하다보니 Method레벨(global-method-security)에서의 AccessDeniedException은 그 전에 설정해놓은 에 걸리지 않는 것을 알게 되었다. 왜 그런가 찾다보니 스택오버플로우[1]에서 답을 찾았는데내 상황이 답을 준것처럼 처리하기에는 정확히 맞지 않는 상황이었다. - StackOverFlow 번역 -access-denied-handler는 AccessDeniedException가 발생할 때 ExceptionTranslationFilter에 의해 사용됩니다.그러나 org.springframework.web.servlet.DispatcherServlet은 먼저 예외 처리를 시도했다.특히 defaultErrorView로 정의 된 org.springf..