Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
来源:互联网 发布:java建造者设计模式 编辑:程序博客网 时间:2024/05/10 06:21
错误如下: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from resource [/WEB-INF/applicationContext.xml] of ServletContext; nested exception is java.io.FileNotFoundException: Could not open resource [/WEB-INF/applicationContext.xml] of ServletContext java.io.FileNotFoundException: Could not open resource [/WEB-INF/applicationContext.xml] of ServletContext
原因: 加载spring的配置文件时在默认位置/WEB-INF/下找不到applicationContext.xml文件,看了下,myeclipse自动生成的applicationContext.xml放在/WEB-INF/classes下,难怪找不到,终于发现问题了,下面在web.xml中做如下配置即可解决: contextConfigLocation /WEB-INF/classes/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]
- 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]
- 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/classes/applicationContext.
- Could not open ServletContext resource [/WEB-INF/classes/applicationContext.xml]解决方法
- SSH三大框架整合问题--Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- 数据库
- 弹出式导航菜单
- 3/24大盘分析以及3/25操作策略
- 澳门赌王----何鸿燊----勤劳努力是最大的资本!
- 如何令你的上司对你另眼相看?
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- 向往未来的家
- 内存中的堆与栈
- 计算机语言 情书
- 教你快速掌握SQL Server锁的相关概念
- ip subnet-zero的用法
- word文档如何自动生成目录
- 浅谈Web
- 关于VC2008下提示找不到MSVCP90D.dll的解决办法