class path resource [config/DBConfig.properties] cannot be opened because it does not。
在导入项目后,启动项目时报的错。
查看一下SpringapplicationConfiguration.xml文件,发现如下代码
<!-- 加载资源文件 --> <context:property-placeholder location="classpath:config/DBConfig.properties"/>
所以在resource文件夹下创建一个空的properties文件,命名为DBConfig.properties即可。
问题解决。