MethodInterceptor拦截器(二)

2015-07-20 17:45:37 · 作者: · 浏览: 10
redInterceptor!=null){ System.out.println(invocation.getMethod().getName()); //你要做的逻辑代码 } return invocation.proceed(); } }4.添加配置

  
    
	
  
   vc:annotation-driven/>
	
	
    
     
     
      
       *Controller
      
      
     
     
     
      
       sessionInterceptor
      
      
     
   
  

总结:不废话解析那么多,直接上成功的例子。