关于applicationContext.xml cannot be opened because it does not exist的解决
来源:互联网 发布:ug数控车床编程 编辑:程序博客网 时间:2024/05/17 02:11
今天犯了一个错误,调了好久,就是加载applicationContext.xml文件时总是路径出错。
我的做法是:在myeclipse中导入spring框架,然后会在src目录下生成applicationContext.xml配置文件。
我手动添加了一个文件在项目下,就是这样
创建了一个conf的文件夹,然后把applicationContext.xml拖拽到该文件夹下,一启动就包上面的错误。
后来查了半天,发现不能直接这么加文件夹上来,需要用如下步骤:
右键项目---->properties--->Java Build Path--->source--->Add Folder --->选择conf文件夹
这样启动才不会出错,以后谨记。
正常的文件夹顺序如下:
conf是在jar包上面的。
0 0
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- applicationContext.xml cannot be opened because it does not exist
- 关于class path resource [applicationContext.xml] cannot be opened because it does not exist
- 创建spring的IOC容器时[ApplicationContext.xml] cannot be opened because it does not exist
- [applicationContext.xml] cannot be opened because it does not exist错误
- class path resource [applicationContext.xml] cannot be opened because it does not exist
- class path resource [applicationContext.xml] cannot be opened because it does not exist
- cannot be opened because it does not exist
- eclipse项目报错怎么解决class path resource [beans.xml] cannot be opened because it does not exist
- webservice [META-INF/xfire/services.xml] cannot be opened because it does not exist
- webservice [META-INF/xfire/services.xml] cannot be opened because it does not exist
- [Tomcat] classpath resource [hbm.xml] cannot be opened because it does not exist
- class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- class path resource [spring.xml] cannot be opened because it does not exist
- actionbar图标
- WCF REST简单应用 编程初始化 help页面实现
- 浅谈Java中的hashcode方法
- 将文件夹下及子文件夹下的class文件打包jar
- Linux(CentOS)下安装配置和使用PostgreSQL数据库
- 关于applicationContext.xml cannot be opened because it does not exist的解决
- iOS web app
- Linux线程同步---互斥量
- 假设检验与判决准则(一)
- CSDN用word2013发布博客
- 一个由Django的save方法引发的bug
- 基于windows下svn安装与配置
- 苹果推送APNS自己总结
- OpenCV - 视频及图像采集