请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException

老师我出现了以下问题,该怎么解决啊?

严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@7b69c6ba] to prepare test instance [com.imooc.o2o.dao.AreaDaoTest@776a6d9b]
java.lang.IllegalStateException: Failed to load ApplicationContext

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘dataSource’ defined in class path resource [spring/spring-dao.xml]: Could not resolve placeholder ‘jdbc.driver’ in value “{jdbc.driver}”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.driver’ in value “{jdbc.driver}”

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.driver’ in value “${jdbc.driver}”

正在回答 回答被采纳积分+3

1回答

翔仔 2020-03-11 01:42:34

Could not resolve placeholder ‘jdbc.driver’ in value “{jdbc.driver}”,你的jdbc.properties有没有定义?这里说的是找不到jdbc.driver这个变量,请与视频比对

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号