[스프링3.X 인터셉터]Spring3 MVC Interceptor, 스프링인터셉터, HandlerInterceptor, postHandle,preHandle
?[스프링3.X 인터셉터]Spring3 MVC Interceptor, 스프링인터셉터, HandlerInterceptor, postHandle,preHandle Spring3 MVC는 서블릿 필터와 유사하게 HTTP Request(요청)를 앞단/뒤단에서 가로챌 수 있는 메커니즘을 제공한다.(org.springframework.web.servlet.HandlerInterceptor ) 인터셉터가 되기 위해서는 HandlerInterceptor를 구현해야 하는데 preHandle(), postHandle(), afterCompletion() 세개의 메소드를 구현해야 한다. preHandle() : 컨트롤러가 실행되기 전에 실행되며 bool형 리턴 한다. 실행체인에서 계속 실행할지 중단할지를 true, fals..
더보기