<No mapping found for HTTP request with URI [/xxx/xxx/xxx] in DispatcherServlet with name 'springMVC'>,主要看尖括号内部分。
问题原因:罪魁祸首是web.xml下对springmvc的DispatcherServlet请求url映射的配置,原配置如下:
<servlet>
<servlet-name>springMVC</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<