Error: Exceeded maxRedirects. Probably stuck in a redirect loop
![[SpringBoot] response.sendRedirect(url)가 동작하지 않는 경우](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbaC6wS%2FbtrGQFn6Ic0%2Fxm63qcZcLzKUYOtS3UXEyk%2Fimg.png)
[SpringBoot] response.sendRedirect(url)가 동작하지 않는 경우
현재 상황 - 인증, 인가 관련 예외 처리를 진행하던 중, AuthenticationEntryPoint에서 응답을 주기 위해서 redirect를 하고 있었다. - 흐름은 AuthenticationEntryPoint -> sendRedirect("/exception/**") -> ExceptionController에서 throw new CustomException -> ControllerAdvice에서 해당 exception에 대한 예외 처리 - 그러나 해당 response가 Controller까지 도달하지 못하고 계속 요청이 동작하지 않는다. - 프로젝트에는 스프링 시큐리티가 적용되어 있다. 문제 Could not get response Error: Exceeded maxRedirects. Probabl..