Caused by: java.io.FileNotFoundException: class path resource [ jdbc.properties] cannot be opened be

配置Spring时遇到的错误,无法加载jdbc.properties文件
在这里插入图片描述
Caused by: java.io.FileNotFoundException: class path resource [ jdbc.properties] cannot be opened be_第1张图片
检查了好几遍都没发现错误,对照了driverClassName什么的都没错。
Caused by: java.io.FileNotFoundException: class path resource [ jdbc.properties] cannot be opened be_第2张图片
最后检查了下配置spring的文件,classpath:后面多加写了个空格
Caused by: java.io.FileNotFoundException: class path resource [ jdbc.properties] cannot be opened be_第3张图片
删掉后就没问题了Caused by: java.io.FileNotFoundException: class path resource [ jdbc.properties] cannot be opened be_第4张图片

你可能感兴趣的:(java,spring,intellij-idea)