标签:int ati 配置 span tee des public 区别 class
1 // 实现Interceptor接口 或 实现 AbstractInterceptor类 2 //AbstractInterceptor 实现了Interceptor接口 主要区别在于空实现了init()、//destory() 方法,由于此方法一般不使用,所以避免了不必要的开销。 3 // 一般选择使用继承 AbstractInterceptor来创建拦截器 4 public abstract class AbstractInterceptor{ 5 public void init(){} 6 public void destory(){} 7 public abstract String intercept(ActionInvocation invocation) throw Exception; 8 }
<intercepteer name="intercepter" class=interceptionClass""> <param name="paramName">paramValue</param> </intercepter>
标签:int ati 配置 span tee des public 区别 class
原文地址:http://www.cnblogs.com/the-wang/p/7647166.html