본문 바로가기
Web/Spring

Interceptor, Filter, AOP

by 당진개발자 2024. 4. 18.

1. Interceptor

  - Controller가 요청을 처리하기 전/후 처리

  - 공통 코드 사용으로 코드 재사용성 증가

  - 여러 개 설정 가능 (순서 주의) a -> b -> c : c -> b -> a

  - ex) 로그인 세션 검증, Header 검증, token 검증

  - AOP(비WEB)과 달리 WEB부분을 처리

 


 

2. Intercetor 메서드

 


 

3. Filter, Interceptor, AOP 비교

 

'Web > Spring' 카테고리의 다른 글

MyBatis-Spring  (0) 2024.04.22
MyBatis  (0) 2024.04.19
SpringMVC  (0) 2024.04.17
AOP(관점 지향 프로그래밍)  (0) 2024.04.16
Spring Architecture DI  (0) 2024.04.15