No mapping found for HTTP request with URI...
来源:互联网 发布:淘宝正品小样店推荐 编辑:程序博客网 时间:2024/06/05 08:01
No mapping found for HTTP request with URI
出现这个问题的原因是在web.xml中配置错了,如:
<servlet>
<servlet-name>springDispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-mvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springDispatcherServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
当你在control中返回一个路径的时候,它又把路径(/view/index.jsp)当作一个请求被dispatcherServlet所拦截。所以会抛出异常,解决的办法有两个:
第一即使让dispatcherServlet的拦截加上后缀如:*.do;
这样以jsp后缀的就不会别拦截了。
第二个方法是在springmvc-servlet.xml中加入:
<mvc:default-servlet-handler/>
- STS error: No mapping found for HTTP request with URI
- Spring MVC No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- no mapping found for http request with uri
- spring No mapping found for HTTP request with URI
- mark springmvc [No mapping found for HTTP request with URI]
- 不一样的No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- springMVC No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- springMVC No mapping found for HTTP request with URI
- WARNING: No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI问题
- springMVC No mapping found for HTTP request with URI
- springMVC No mapping found for HTTP request with URI
- Spring MVC------No mapping found for HTTP request with URI
- ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值”解决办法
- Java中的List
- python3.5学习if笔记(1)
- windows下Python读取中文目录
- HDU 2089 不要62【数位dp】【模板题】
- No mapping found for HTTP request with URI...
- mysql常见面试题
- window.print()
- 数据结构——查找(2)
- shell研究(1)-简介
- 进入docker(2)
- 触摸屏-原理及流程回顾
- ubuntu中man显示中文
- 【Ubuntu】使用Archive Manager解压RAR显示Parsing filters is unsupported.