dao测试问题
来源:2-7 验证Dao
沉默豆子
2017-11-12
十一月 12, 2017 3:35:23 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getDefaultTestExecutionListenerClassNames
資訊: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
十一月 12, 2017 3:35:23 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
資訊: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@3a03464, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2d3fcdbd, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@617c74e5, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6537cf78, org.springframework.test.context.transaction.TransactionalTestExecutionListener@67b6d4ae, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@34b7bfc0]
十一月 12, 2017 3:35:24 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
資訊: Loading XML bean definitions from class path resource [spring/spring-dao.xml]
十一月 12, 2017 3:35:24 下午 org.springframework.context.support.GenericApplicationContext prepareRefresh
資訊: Refreshing org.springframework.context.support.GenericApplicationContext@39aeed2f: startup date [Sun Nov 12 15:35:24 CST 2017]; root of context hierarchy
十一月 12, 2017 3:35:24 下午 com.mchange.v2.log.MLog <clinit>
資訊: MLog clients using java 1.4+ standard logging.
十一月 12, 2017 3:35:24 下午 com.mchange.v2.c3p0.C3P0Registry banner
資訊: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
spring-dao.xml检查过了
2回答
-
翔仔
2017-11-13
同学请问还有没有别的信息,这里看起来没有啥报错的信息,如果有跟错误相关的信息麻烦提供一下,同学也可以调试看看错在哪里。
00 -
喜洋洋Max
2017-11-13
要不就是数据库驱动jar包没导进去,要不就是XML配置文件出错了(尽量和老师的配置一样,我也是没写一样有过错误找了好久),看看maven仓库有没有数据库驱动的jar包,maven仓库的jar包也很重要,这块老师没有提。
00
相似问题