Reprinted from: http://blog.sina.com.cn/s/blog_534f69a00101332u.html
1. Question:
No mapping found for HTTP request with URI
This problem occurs because the configuration is wrong in Web. XML, such as:
<servlet>
<servlet-name>springMVCDispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/springMVC-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springMVCDispatcherServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
2. Analysis:
When you return a path in control, it takes the path (/view/index.jsp) as a request to be intercepted by Dispatcherservlet. So the exception is thrown, there are two ways to solve it:
3. Resolution:
First, even if the interception of Dispatcherservlet to add suffixes such as: *.do;
In this way, the JSP suffix will not intercept.
The second method is to add a spring-servlet.xml:
<mvc:default-servlet-handler/>
SPRINGMVC No mapping found for HTTP request with URI