java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [SpringDay03/src/applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [SpringDay03/src/applicationContext.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [SpringDay03/src/applicationContext.xml] cannot be opened because it does not exist
**这种错误一般是 1.applicationContext.xml文件没有放在src下面 2.读取配置文件名字写错 3.如果是通过注解方式可以是因为忘记加classpath: **