`
shendixiong
  • 浏览: 393526 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

Could not resolve placeholder 'jdbc.driverClassName' in string value "${jdbc.dri

阅读更多
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with 
name 'dataSource' defined in file 
[/home/hintest_tomcat_test/webapps/hintest/WEB-INF/classes/conf/spring/applicationContext.xml]
: Could not resolve placeholder 'jdbc.driverClassName' in string value 
"${jdbc.driverClassName}"

 

 

出现上面的原因一般有以下几个检查:

  (1).在*.properties 属性文件中,名称是否与applicationcontext.xml 中的文件名称是否一致

  (2).是否有properties 属性文件,存在该名称

  (3).在applicationContext.xml 中 是否有加

<property name="ignoreUnresolvablePlaceholders" value="true" />

 (加载properties 属性文件的地方都应该写)大概意思,就是过滤掉特殊占位符

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics