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

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

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

admin为增加的包名

相关文章:

  • 2022-12-23
  • 2021-09-26
  • 2021-06-05
  • 2021-01-13
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2021-10-06
  • 2021-12-06
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案