如何解决从3.0版到3.1版,未找到带有URI的HTTP请求的映射
通过从spring 3.0.0.RELEASE迁移到spring 3.1.0.RELEASE,我看到此错误:
o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/mcbm-web-2.3.0-SNAPSHOT/mcbm/rpc/statistic.rpc] in DispatcherServlet with name 'rpc'.
我看不到可以进行哪些更改以使其正常工作。
我寻找了两个版本之间的不兼容之处,但没有发现太多。通常它们应该兼容。
我的web.xml:
<display-name>MCBM</display-name>
<welcome-file-list>
<welcome-file>indexRedirect.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>mcbm-web</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/com/airbus/mcbm/core/spring/applicationContext-dataSource.xml
classpath:/com/airbus/mcbm/core/spring/applicationContext.xml
classpath:/com/airbus/mcbm/core/spring/applicationContext-core.xml
classpath:/com/airbus/mcbm/web/server/applicationContext-dataSource.xml
classpath:/com/airbus/mcbm/web/server/applicationContext-server.xml
</param-value>
</context-param>
<listener>
<listener-class>com.airbus.mcbm.web.server.util.GwtServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>rpc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>rpc</servlet-name>
<url-pattern>*.rpc</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
预先感谢您的帮助
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。