io.FileNotFoundException: class path resource [applicationContext] cannot be ..."/>
Caused by: java.io.FileNotFoundException: class path resource [applicationContext] cannot be ...
报错信息:
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扩展名。
例如
错误示例:
正确示例:
更多推荐
Caused by: java.io.FileNotFoundException: class path resource [applicationContex
发布评论