struts2 纯注解 却提示There is no Action mapped for namespace

1、看看struct2-convention-plugin-2.3.16.jar这个包是否已经加入

2、在struct。xml中没有启用纯注解的扫描,你可以指定路径启用注解扫码

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

你可能感兴趣的:(jsp,struts2,struts,纯注解)