You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strategy interface for resolving method parameters into argument values in the context of a given request.
매개변수의 리졸빙
컨트롤러에서 파라미터를 바인딩 해주는 역할
AuthInterceptor
Workflow interface that allows for customized handler execution chains. Applications can register any number of existing or custom interceptors for certain groups of handlers, to add common preprocessing behavior without needing to modify each handler implementation.
A HandlerInterceptor gets called before the appropriate HandlerAdapter triggers the execution of the handler itself. This mechanism can be used for a large field of preprocessing aspects, e.g. for authorization checks, or common handler behavior like locale or theme changes. Its main purpose is to allow for factoring out repetitive handler code.
권한 확인 또는 로케일 또는 테마 변경과 같은 일반적인 핸들러 동작과 같은 전처리 측면의 넓은 분야에 사용
인증 / 인가에 대한 검사
주요 목적은 반복적 인 핸들러 코드를 제거하는 것
Spring doc에서 공식적으로 authorization checks를 하는 애라고 지정해준 존재
ArgumentResolver와 Interceptor
ArgumentResolver
AuthInterceptor
HandlerInterceptor의 메서드
preHandle(request, response, handler)
postHandle(request, response, handler, modelAndView)
afterCompletion(request, reponse, handler, exception)
Servlet Filter란?
HandlerInterceptor VS Servlet Filter
Servlet Filter
Interceptor
흐름 순서
사용자 요청(Request) -> Servlet Filter -> Dispatcher Servlet -> Interceptor -> Controller
참고자료
The text was updated successfully, but these errors were encountered: