老项目 spring4.2 升级为springboot 2.4的时候有类
@PropertySource("classpath:filePath.properties")
启动的时候报错,
Caused by: java.io.FileNotFoundException: class path resource [filePath.properties] cannot be opened because it does not exist
检查发现在spring中,这个文件放在 src/main/java 下,现在在springboot中这样就找不到,需要挪到 src/main/resource 下面。