码迷,mamicode.com
首页 > 其他好文 > 详细

Struts2注解指定Action扫描路径

时间:2014-07-19 00:36:43      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:使用   io   cti   c   spring   struts2   

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

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

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

admin为增加的包名

Struts2注解指定Action扫描路径,布布扣,bubuko.com

Struts2注解指定Action扫描路径

标签:使用   io   cti   c   spring   struts2   

原文地址:http://www.cnblogs.com/mingf123/p/3853830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!