老师 我这个报错是什么问题
来源:2-6 逐层完成SSM的各项配置
慕圣838846
2020-11-19
ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5a8e6209] to prepare test instance [com.imooc.o2o.dao.AreaDaoTest@7494e528]
java.lang.IllegalStateException: Failed to load ApplicationContext
2回答
-
慕圣838846
提问者
2020-11-20
老师 辛苦了 这么晚还在回答 我查了下 网上说是idk版本不对 是这样吗?
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}"
09:09:18.956 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test class: context [DefaultTestContext@4973813a testClass = AreaDaoTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6321e813 testClass = AreaDaoTest, locations = '{classpath:spring/spring-dao.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
012020-11-21 -
翔仔
2020-11-20
同学好,辛苦提供下caused by 附近的语句,也可以将caused by附近的语句贴百度上查查。
00
相似问题
回答 2
回答 4