No mapping found for HTTP request with URI
来源:互联网 发布:8管脚单片机 编辑:程序博客网 时间:2024/06/18 11:50
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 />
- 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
- 用rvest包爬取豆瓣图书数据
- Activity的launchMode介绍
- matlab 全局最优算法 GlobalSearch
- 郁闷!ionic中获取ng-model绑定的值为undefined如何解决
- java——与c++之不同——其他
- No mapping found for HTTP request with URI
- hdu5972 快速匹配bitset优化(shiftand算法)2016ACM/ICPC亚洲区大连站
- 更快的方式实现PHP数组去重(转)
- android 隐藏状态栏
- Matrix calculus 矩阵微分
- Android中SimpleAdapter,BaseAdapte详解
- 你应该知道的浮点数基础知识
- 食品类企业网站dedecms模板免费下载
- fastdfs的安装与使用,配置nginx可直接用http访问