HandlerInterceptorAdapter1 Spring boot - HandlerInterceptorAdapter와 zuul Filter 의 사용시 문제 Spring boot - HandlerInterceptorAdapter와 zuul Filter 의 사용시 문제 [문제 발생 내용] Spring boot application에서 HandlerInterceptorAdapter에 들어오는 사용자의 IP를 체크하는 Interceptor를 넣어서 사용중이었다. 이후 Zuul Gateway api 가 필요하게 되어 을 적용했는데, Zuul 필터 구성후 인터셉터가 호출이 안되는것이었다. 좀 더 정확하게 이야기하면, Zuul routes 를 타는 경우에만 인터셉터가 호출이 안된다. [해결 방법] 간단하게 해결이 가능하다, 아래와 같은 Class를 생성해주면 된다. InstantiationAwareBeanPostProcessorAdapter를 상속받고 zuulMappi.. 2022. 7. 15. 이전 1 다음