Could not resolve placeholder 'jdbc.password' in string value "${jdbc.password}"
作者:互联网
spring连接数据库时报错
org.springframework.beans.factory.BeanDefinitionStoreException:
Invalid bean definition with name 'dataSource' defined in class path resource [spring-dao.xml]: Could not resolve placeholder 'jdbc.password' in string value "${jdbc.password}";
nested exception is java.lang.IllegalArgumentException:
Could not resolve placeholder 'jdbc.password' in string value "${jdbc.password}"
原因
xml配置文件中password与properties数据源文件中pwd不同;
解决
xml配置文件中与properties数据源文件中数据库密码命名一致
标签:xml,jdbc,string,Could,password,placeholder 来源: https://www.cnblogs.com/wyz5/p/16600587.html