prehandle1 [Spring] MVC HandlerInterceptor / Interceptor를 사용하여 HTTP 요청을 가로채는 방법 Spring Handler Interceptor Simply put, a Spring interceptor is a class that either extends the HandlerInterceptorAdapter class or implements the HandlerInterceptor interface. public class LoggerInterceptor implements HandlerInterceptor { ... } Spring Interceptor는 ①HandlerInterceptor 인터페이스를 구현 하거나, ②HandlerInterceptorAdapter 클래스를 상속 하는 클래스다. ①HandlerInterceptor 인터페이스를 구현 HandlerInterceptor 에는 3가지.. 2023. 6. 19. 이전 1 다음