SpringMVC的拦截器HandlerInteceptor的三个方法:
1.preHandle():controller得到请求,如果不放行controller拿不到请求。
2.postHandle():controller处理完要跳转视图时调用该方法。
3.afterCompletion():跳转到视图后调用方法。
SpringMVC的拦截器HandlerInteceptor的三个方法:
1.preHandle():controller得到请求,如果不放行controller拿不到请求。
2.postHandle():controller处理完要跳转视图时调用该方法。
3.afterCompletion():跳转到视图后调用方法。