您的位置:首页 > 产品设计 > UI/UE

DispatcherServlet.noHandlerFound No mapping found for HTTP request找不到映射文件遇到的问题

2020-02-05 02:34 441 查看

//出现找不到spring配置文件

严重 [http-nio-80-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring-mvc.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring-mvc.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)

输入路径之后找不到路径

警告 [http-nio-80-exec-13] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping found for HTTP request with URI [/account/operate] in DispatcherServlet with name 'DispatcherServlet'

做过一些尝试 :在web.xml配置中修改对spring配置的加载
谁能想到上面的一堆错误全来自于

<!--  JSTL标签库-->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
我把这些注释掉,重启tomcat
再添加上,重启tomcat就又可以了???卧槽卧槽卧槽!!!
  • 点赞
  • 收藏
  • 分享
  • 文章举报
爪洼国窝窝岛娃娃村村民 发布了37 篇原创文章 · 获赞 3 · 访问量 1412 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐