스프링 인터셉터1 [Spring] interceptor Spring boot 기준 Filter는 Spring 외부에 있지 않다. 톰캣이 내장되어 Filter도 Di가 가능. interceptor는 dispatcher servlet과 controller 사이에서 요청과 응답을 가공, 처리하고자 할 때 사용한다. interceptor와 filter filter는 모든 요청과 공통기능에 적용할 사항 interceptor는 선별한 요청과 응답에 대해 적용할 세부 사항 interceptor 와 AOP interceptor는 URL을 통해 적용할 메서드를 선별 AOP는 포인트컷을 통해 적용할 메서드를 선별 @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD}) public @interface Login { .. 2022. 8. 15. 이전 1 다음