springMVC--关于no mapping found for http request with uri .......
来源:互联网 发布:关键词排名优化小技巧 编辑:程序博客网 时间:2024/06/06 17:05
首次部署springMVC项目时,很有可能会遇到这个可恶的警告: no mapping found for http request with uri **** in dispatcherservlet with name **,解决这个问题真的是用了很长的时间,总结一下解决的方法
1>首先一定要看下你的请求路径写错了没,不然可能会因为这个简单的疏忽而浪费很长的时间
2>其次再看一下springMVC的配置文件,其中配置的 <context:component-scan base-package="***"/>到对有没有扫描到你定义的handler所在的包
3>如果上面的的都没有解决,就要看下web.xml文件了
<servlet-mapping>
<servlet-name>springMVC</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
这里的请求拦截路径是 / 而不是 /*
4>最后要看下配置文件的路径,这里要具体的到tomcat下去找配置文件的路径,才不会出错
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:com/lee/config/springmvc.xml</param-value>
</init-param>
classpath:是指到WEB-INF下的classes,其余的路径要根据tomcat下的具体路径去写
阅读全文
0 0
- springMVC--关于no mapping found for http request with uri
- springMVC--关于no mapping found for http request with uri .......
- mark springmvc [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
- springMVC 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
- springMVC 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
- springMVC报WARNING: No mapping found for HTTP request with URI [/springMVC/hello] in DispatcherServle
- 警告: No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
- No mapping found for HTTP request with URI [/index.html] in DispatcherServlet with name 'springmvc'
- No mapping found for HTTP request with URI [/springmvc/queryitems.action] in DispatcherServlet with
- No mapping found for HTTP request with URI [/chart/get] in DispatcherServlet with name 'SpringMVC‘
- No mapping found for HTTP request with URI [/index.do] in DispatcherServlet with name 'SpringMVC‘
- SpringMVC:No mapping found for HTTP request with URI [/account/*] in DispatcherServlet with
- loadrunner Web_类函数之web_reg_dialog()
- 1004. 成绩排名 (20)
- 2017.9.18 鬼谷子的钱袋 思考记录
- 使用OnTouchListener同时处理onClick与onLongClick
- MySQL InnoDB四个事务级别 与 脏读、不重复读、幻读
- springMVC--关于no mapping found for http request with uri .......
- sleep与yield
- Java反射机制
- 【CF472G】【XSY2112】Design Tutorial 压位
- Jenkins基础入门-8-构建触发器之远程构建
- 从零开始搭建zabbix以及简单实例(based on 官方文档)
- hibernate查询
- 返回上一页跳过中间页面,返回上一页跳过敏感页面
- 关于eclipse安装失败的解决方法