Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]【解决方案】
来源:互联网 发布:网络电视有哪些功能 编辑:程序博客网 时间:2024/05/22 07:46
第一次自学springmvc的时候,老是报错Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml],郁闷的不要不要的。按照配置规则重新检查了一遍,没看出问题来,上网搜了一下说在web.xml里面加入:
<servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/pringMVC-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>springmvc</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
加上之后还是报错,我又重新从前往后检查了一遍,终于找到了:原来是TMD把文件名spring-servlet.xml写成了springmvc-servlet.xml.xml了,真实粗心害死人。改回来之后问题解决!
阅读全文
1 0
- Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]【解决方案】
- springmvc/mybaits的web.xml配置:Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/dispatcherservlet-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/Dispatcher-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/dispatcherservlet-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/spring-servlet.xml]
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- dorado7 Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- 有向图的实现
- 每日英语阅读(四十四)
- 怎么下载小程序二维码-微信小程序开发-视频教程4
- 指针运算
- Linux开启启动Docker
- Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]【解决方案】
- UVA
- 指针相减的意义
- 小程序名称可以和公众号同名-微信小程序开发-视频教程5
- 指针引用二维数组
- 记录下一个 iOS APP上线的艰辛过程
- 网络
- 二维数组元素的地址是连续的
- 使用指针输出二维数组的任意元素