org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [DBPool.properties] cannot be opened because it does not exist
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [DBPool.properties] cannot be opened because it does not exist
java.io.FileNotFoundException: class path resource [DBPool.properties] cannot be opened because it does not exist
配置文件可以放在config文件夹中
工程上右击 New --> Source Folder,之后输入个 config 名字就可以了
如果已经有了config文件夹,可还是找不到,或者是用 New --> Folder 建 config 的话,需要这样:
在工程上右击,选 properties,java build path 选 Source 页签,点 Add Folder... 选中 config 就可以了。
黑色头发:http://heisetoufa.iteye.com/
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [DBPool.properties] cannot be opened because it does not exist
java.io.FileNotFoundException: class path resource [DBPool.properties] cannot be opened because it does not exist
配置文件可以放在config文件夹中
工程上右击 New --> Source Folder,之后输入个 config 名字就可以了
如果已经有了config文件夹,可还是找不到,或者是用 New --> Folder 建 config 的话,需要这样:
在工程上右击,选 properties,java build path 选 Source 页签,点 Add Folder... 选中 config 就可以了。
黑色头发:http://heisetoufa.iteye.com/