【踩坑】 class path resource [**.xml] cannot be opened because it does not exist

今天在配置spring整合web项目的时候遇到如下错误
Caused by: java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist

按照教程的中,配置好监听器文件位置之后放在src下也能读取,但我的却报了如上错误,找不到配置文件。
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param>**
后来把路径加个*就可以了
【踩坑】 class path resource [**.xml] cannot be opened because it does not exist

上一篇:jpa中"HIBERNATE_SEQUENCE" does not exist


下一篇:redis 业务锁 not exist 模式