原因:找不到数据库资源,springSpring却在项目根目录下寻找配置文件,而配置文件放在resources中
解决: 添加寻找路径
<context:property-placeholder location="classpath:database.properties"/>
原因:找不到数据库资源,springSpring却在项目根目录下寻找配置文件,而配置文件放在resources中
解决: 添加寻找路径
<context:property-placeholder location="classpath:database.properties"/>