Could not resolve placeholder 'jdbc.driverClass'
来源:互联网 发布:娃娃音的网络女歌手 编辑:程序博客网 时间:2024/05/31 04:03
Invalid bean definition with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Could not resolve placeholder 'jdbc.driverClass'
我自己出这个错是因为properpties中的java build path里的 source 标签下的default output folder 中默认的是: 工程名/bin,要把这个改为工程名/WebRoot/WEB-INF/classes
如果是maven工程则
<outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
另外在spring的第一个加载的配置文件中添加
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath*:/jdbc.properties</value>
<value>classpath*:/springjdbc/applicationContext-jdbc.xml</value>
</list>
</property>
</bean>
- Could not resolve placeholder 'jdbc.driverClass'
- Could not resolve placeholder jdbc.url
- Could not resolve placeholder
- Could not resolve placeholder
- spring+mybatis 报Could not load driverClass ${jdbc.driverClass}
- spring+mybatis 报Could not load driverClass ${jdbc.driverClass}
- "Could not resolve placeholder"解决方案
- Could not resolve placeholder 参考
- spring Could not resolve placeholder
- "Could not resolve placeholder"解决方案
- Could not resolve placeholder 解决方案
- Could not resolve placeholder 'jdbc.driverClassName' in string value "${jdbc.driverClassName}
- Could not resolve placeholder 'master.jdbc.url' in string value "${master.jdbc.url}"
- Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
- Could not resolve placeholder 'jdbc.url' in string value "${jdbc.url}"
- 报错Could not resolve placeholder 'jdbc.driverClassName' in string value "${jdbc.driverClassName}
- Could not resolve placeholder 'jdbc.driverClassName' in string value "${jdbc.driverClassName}错误
- 错误笔记之Could not resolve placeholder 'jdbc.driver' in string value "${jdbc.driver}"
- osg 在vs2008编译
- 断想
- 程序员如何明确职业与人生的目标
- SAP Session说明
- 妈妈经验:小儿咳嗽怎么办?夜咳?寒咳?热咳?
- Could not resolve placeholder 'jdbc.driverClass'
- 删除文件下的某个文件或者所有文件
- 冯诺依曼体系结构与哈弗体系结构的区别
- memcacheq的简介及终端操作方法
- source insight中的多行注释
- Windows 下单机最大TCP连接数之设置
- PHP创建Cookie数组
- Adapter报错:The content of the adapter has changed
- 我指间的刺青是对你的誓言