这个错误是找不到你的数据源文件

springMVC之class path resource [jdbc.properties] cannot be opened because it does not exist错误
情况1、观察你的数据源文件放置的位置
springMVC之class path resource [jdbc.properties] cannot be opened because it does not exist错误
引入外部数据源文件可以使用相对路径,可以不使用classPath,
如果要使用classPath的话要将数据源文件存放在手动设置的数据源包中
springMVC之class path resource [jdbc.properties] cannot be opened because it does not exist错误
之后将数据源文件放入此文件中,就可以使用classPath路径选择数据源文件
springMVC之class path resource [jdbc.properties] cannot be opened because it does not exist错误
情况2、可能你没有数据源文件

相关文章: