//出现找不到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就又可以了???卧槽卧槽卧槽!!!
版权声明:本文为weixin_40085248原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。