1、看看struct2-convention-plugin-2.3.16.jar这个包是否已经加入
2、在struct。xml中没有启用纯注解的扫描,你可以指定路径启用注解扫码
<constant name="struts.convention.package.locators" value="action,actions,struts,struts2,funcs,api" />
本文探讨如何在项目中引入并配置结构化注解,包括如何启用注解扫描及指定注解路径,以实现更高效、灵活的注解使用方式。
1、看看struct2-convention-plugin-2.3.16.jar这个包是否已经加入
2、在struct。xml中没有启用纯注解的扫描,你可以指定路径启用注解扫码
<constant name="struts.convention.package.locators" value="action,actions,struts,struts2,funcs,api" />
3976

被折叠的 条评论
为什么被折叠?