验证Dao出现bug

来源:2-7 验证Dao

springbaby

2020-03-11

老师,以下问题怎么解决?

ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@49c43f4e] to prepare test instance [com.imooc.o2o.dao.AreaDaoTest@4f9a3314]
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.username’ in value “{jdbc.username}”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.username’ in value “{jdbc.username}”

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

写回答

2回答

springbaby

提问者

2020-03-11

这个问题已解决

1
3
weixin_慕田峪434626
请问怎么解决的
2020-04-25
共3条回复

一个小菜鸡呀最爱敲代码呀

2020-04-02

怎么解决的??

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程

相似问题