报错信息:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [applicationContext] cannot be opened because it does not exist
原因:
ClassPathXmlApplicationContext()内的配置文件路径写错,或者文件名后面没有加上.xml扩展名。