您的位置:首页 > 移动开发

There is no Action mapped for namespace / and action name . - [unknown location] 其中一种解决方法

2013-06-27 15:25 585 查看
我是用maven构建的全注解ssh项目,在action跳转的时候一直报这个错,网上也找了很多资料,没有解决,但是用传统的方法没有问题,就肯定还是注解的问题。最后还是参考的菠萝大象先生的文章。

需要在struts.xml中配置如下属性:

<!-- 配置convention插件默认的根包-->

<constant name="struts.convention.package.locators" value="web"/>

<!-- 搜索此配置下的所有包 -->

<constant name="struts.convention.package.locators.basePackage" value="com.*.demo3"></constant>

<!-- 配置返回页面 -->


<constant name="struts.convention.result.path" value="/web-inf/jsp"></constant>


value的值根据自己项目情况具体设定
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐