Struts2注解指定Action扫描路径

使用spring和struts2集成全注解时 struts2默认扫描包名 action,actions,struts,struts2 的包 如果action不存在以上包时 就不会扫描到

此时需要在struts.xml中增加注释 

<constant name="struts.convention.package.locators" value="action,actions,struts,struts2,admin"/>

admin为增加的包名

posted @ 2014-07-18 16:36  天地大同  阅读(860)  评论(0编辑  收藏  举报