struts 2.5 There is no Action mapped for namespace [/] and action name [user_find] associated with context path [/struts2_crm].

 遇到了这个错误.

There is no Action mapped for namespace [/] and action name [user_find] associated with context path [/struts2_crm].

2.5里面要在package添加如下tag

<global-allowed-methods>regex:.*</global-allowed-methods>

e.g.

<package name="crm" extends="struts-default" namespace="/">
     <global-allowed-methods>regex:.*</global-allowed-methods>
    <action name="user_*" class="cloud.web.action.UserAction" method="{1}">
        <result name="findSuccess">/jsp/user/list.jsp</result>
    </action>
</package>

 

posted @ 2019-03-03 15:06  Demoncloud  阅读(144)  评论(0编辑  收藏  举报