使用说明:
1.配置struts.xml,新增一行
<bean type="com.opensymphony.xwork2.ActionProxyFactory" class="com.linekong.xworkext.LinekongActionProxyFactory"/>
2.配置struts.xml,新增一行
<constant name="struts.configuration.classpath.defaultParentPackage" value="app-default" />
来指定struts2的默认package
其中“app-default”是你struts应用的package(注意:目前的版本只允许应用程序中有唯一一个package)
3.像原来是用xml配置文件的方式一样,在app-default下面配置你的interceptor-stack
4.在Action类中使用@InterceptorRefrence(value="xxxx")来指定此action的拦截器栈
我的邮箱lsj8080@163.com,如有问题,欢迎交流!