java spring mvc Error:No mapping found for HTTP request with URI
来源:互联网 发布:淘宝手机端怎么排名 编辑:程序博客网 时间:2024/06/05 23:50
问题描述:Spring MVC,报错【No mapping found for HTTP request with URI】,反复 百度了一把,里面各种解决方案,最终都不能够解决问题,反复检查配置文件,也没有看到哪里有错,最终还是在一个帖子的回复里面找到了解决方案。
解决方法:选择项目右键,bulid project。
导致这个问题的原因:可能是因为没有指定WEB工程的Build Path导致。由于,有些版本的ECLIPSE默认没有将WEB工程的CLASSPATH设置为WEB-INFO/classes,所以编译的Serlvet类就不在该路径下。而tomcat的web工程部署默认在该路径下寻找Servlet类,因而即使web.xml中正确配置了url-pattern也将出现上述错误。
解决方案是在该帖子里面找到的:http://bbs.csdn.net/topics/390401966
因为没有看到那个帖子专门说个这个事情,所以为了方便大家专门写一个帖子。
0 0
- java spring mvc Error:No mapping found for HTTP request with URI
- Spring MVC No mapping found for HTTP request with URI
- Spring MVC------No mapping found for HTTP request with URI
- Spring mvc No mapping found for HTTP request with URI
- STS error: No mapping found for HTTP request with URI
- spring mvc page not found no mapping found for http request with uri
- spring No mapping found for HTTP request with URI
- spring mvc No mapping found for HTTP request with URI [] in DispatcherServlet
- Spring 3 MVC No mapping found for HTTP request with URI (转)
- 解决spring mvc No mapping found for HTTP request with URI错误的三种方法
- 解决spring mvc No mapping found for HTTP request with URI错误的三种方法
- Spring MVC静态资源拦截(No mapping found for HTTP request with URI in DispatcherServlet with name ' ')问题
- Spring MVC的简单案例报错:警告: No mapping found for HTTP request with URI [/springMVC/hello2] in DispatcherSe
- No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- 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
- css笔记1
- 类和对象
- Kanzi基础---Kanzi的4层框架
- 不一样的师徒盛宴
- Kafka笔记三之java操作
- java spring mvc Error:No mapping found for HTTP request with URI
- 蓝桥杯--第七届决赛:路径之谜
- 极化码的原理
- 图像边缘检测-Sobel算子
- JNI ERROR (app bug): local reference table overflow (max=512)
- 周志华 机器学习 模型选择与评估
- Kanzi基础---C++访问Kanzi节点
- Hibernate检索方式概述
- 如何消化一本书