问答详情
源自:4-8 DAO层单元测试编码和问题排查(上)

为什么没有拿到数据是不是我mapper写错了

[main] DEBUG o.s.t.c.s.AbstractDirtiesContextTestExecutionListener - After test class: context [DefaultTestContext@4f063c0a testClass = DepartmentDaoTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@1e6d1014 testClass = DepartmentDaoTest, locations = '{classpath:spring/spring-dao.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].


提问者:FLTjones 2016-12-16 10:14

个回答

  • 轻漾、
    2016-12-17 00:23:24

    配置有問題吧