使用struts2 convention插件遇到的问题

来源:互联网 发布:中国软件行业协会logo 编辑:程序博客网 时间:2024/05/16 01:32
在使用struts2 convention插件结合springside3以及注解搭建项目的时候,发现在web.xml中配置的欢迎页面失效,以及servlet配置的路径失效,纠结了很久,最好发现是convention插件的问题,他会把所以路径都当成action来拦截,在struts2配置文件中加入 <constant name="struts.action.extension" value="action"></constant>即可迎刃而解。
原创粉丝点击