No mapping found for HTTP request with URI
2017-06-09 16:05
483 查看
spring-mvc.xml 文件没有注入controller类
<!-- 自动扫描该包,使SpringMVC认为包下用了@controller注解的类是控制器 -->
<context:component-scan base-package="com.rinlink.intelligent.controller" />
参考网址
http://www.cnblogs.com/qwcbeyond/p/4948586.html
添加这么一段过滤,又出现No mapping found for HTTP request with URI
<mvc:resources location="/" mapping="/**/*.html" />
<mvc:resources location="/" mapping="/**/*.js" />
<mvc:resources location="/" mapping="/**/*.css" />
<mvc:resources location="/" mapping="/**/*.png" />
<mvc:resources location="/" mapping="/**/*.gif" />
<mvc:resources location="/" mapping="/**/*.ttf" />
<mvc:resources location="/" mapping="/**/*.woff" />
<mvc:resources location="/" mapping="/**/*.woff2" />
解决办法就是:
添加一行
<mvc:annotation-driven />
<!-- 自动扫描该包,使SpringMVC认为包下用了@controller注解的类是控制器 -->
<context:component-scan base-package="com.rinlink.intelligent.controller" />
参考网址
http://www.cnblogs.com/qwcbeyond/p/4948586.html
添加这么一段过滤,又出现No mapping found for HTTP request with URI
<mvc:resources location="/" mapping="/**/*.html" />
<mvc:resources location="/" mapping="/**/*.js" />
<mvc:resources location="/" mapping="/**/*.css" />
<mvc:resources location="/" mapping="/**/*.png" />
<mvc:resources location="/" mapping="/**/*.gif" />
<mvc:resources location="/" mapping="/**/*.ttf" />
<mvc:resources location="/" mapping="/**/*.woff" />
<mvc:resources location="/" mapping="/**/*.woff2" />
解决办法就是:
添加一行
<mvc:annotation-driven />
相关文章推荐
- springMVC No mapping found for HTTP request with URI
- 在写springmvc整合hibernate的时候报警告No mapping found for HTTP request with URI的原因
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- SpringMVC - 问题. No mapping found for HTTP request with URI
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- spring mvc page not found no mapping found for http request with uri
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- springmvc No mapping found for HTTP request with URI in Dispatc
- No mapping found for HTTP request with URI [/spring/WEB-INF/page/index.jsp] in DispatcherServlet with name &#39;spring&#39;
- no mapping found for http request with uri
- Spring MVC No mapping found for HTTP request with URI
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- springmvc No mapping found for HTTP request with URI in Dispatc
- STS error: No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI [/spring/WEB-INF/page/index.jsp] in DispatcherServlet with name 'spring'
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- 警告: No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
- springmvc No mapping found for HTTP request with URI in Dispatc
- No mapping found for HTTP request with URI[路径] in DispatcherServlet with name spring3