验证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
这个问题已解决
132020-04-25 -
一个小菜鸡呀最爱敲代码呀
2020-04-02
怎么解决的??
00
相似问题