HTTP Status 404 - There is no Action mapped for namespace / and action name Logi

HTTP Status 404 - There is no Action mapped for namespace / and action name Login.
出现这个错误,郁闷半天,最后发现是struts2的版本问题,我是使用最新的struts配置2.1.8
不管如何都是找不到,最后查找到更改web.xml中过滤器定义,好用
	<!-- 配置struts2过滤器 -->
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

你可能感兴趣的:(apache,Web,xml,struts)