boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
sevlet-context.xml
<beans:bean id="confirm" class="com.ssafy.interceptor.ConfirmInterceptor"/>
<interceptors>
<interceptor>
<mapping path="/article/write"/>
<mapping path="/article/view"/>
<mapping path="/article/modify"/>
<mapping path="/article/delete"/>
<beans:ref bean="confirm"/>
</interceptor>
</interceptors>
<interceptors>
<interceptor>
<mapping path="/article/*"/>
<exclude-mapping path="/user/log*"/> <!-- interceptor 제외 -->
<beans:bean class="com.web.interceptor.ConfirmInterceptor"/>
</interceptor>
</interceptors>