Myeclipse ,内置的maven建项目,加了spring 框架。
遇到的问题是
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
....(省略)
Caused by: java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
解析不到applicationContext.xml 但感觉没有错,如下
![图片说明](https://img-ask.csdn.net/upload/201608/12/1470975495_55217.png)
...=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
但是我通过Maven4Myeclipse--》update project 之后可以运行了
但是使用 maven命令clean compile 之后,再次运行,又报出上面的错误了。
怎么回事?