验证DAO出错
来源:2-5 配置Maven
慕哥7893339
2018-09-13
九月 13, 2018 6:30:35 下午 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]
九月 13, 2018 6:30:35 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
信息: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2ef9b8bc, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5d624da6, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1e67b872, org.springframework.test.context.support.DirtiesContextTestExecutionListener@60addb54, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3f2a3a5, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@4cb2c100]
九月 13, 2018 6:30:35 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [spring/spring-dao.xml]
九月 13, 2018 6:30:36 下午 org.springframework.context.support.GenericApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.GenericApplicationContext@4520ebad: startup date [Thu Sep 13 18:30:36 CST 2018]; root of context hierarchy
九月 13, 2018 6:30:36 下午 com.mchange.v2.log.MLog
信息: MLog clients using java 1.4+ standard logging.
九月 13, 2018 6:30:36 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
18:30:36.907 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using ‘class org.apache.ibatis.logging.slf4j.Slf4jImpl’ adapter.
18:30:37.029 [main] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VFS
18:30:37.029 [main] DEBUG org.apache.ibatis.io.JBoss6VFS - JBoss 6 VFS API is not available in this environment.
18:30:37.031 [main] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VirtualFile
18:30:37.033 [main] DEBUG org.apache.ibatis.io.VFS - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
18:30:37.034 [main] DEBUG org.apache.ibatis.io.VFS - Using VFS adapter org.apache.ibatis.io.DefaultVFS
18:30:37.035 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Administrator/Desktop/work/libweb/target/classes/com/work/libweb/book
18:30:37.035 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Administrator/Desktop/work/libweb/target/classes/com/work/libweb/book
18:30:37.094 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: personinfo.class
18:30:37.096 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: smallbook.class
18:30:37.097 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Listing file:/C:/Users/Administrator/Desktop/work/libweb/target/classes/com/work/libweb/book
18:30:37.097 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Administrator/Desktop/work/libweb/target/classes/com/work/libweb/book/personinfo.class
18:30:37.098 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Administrator/Desktop/work/libweb/target/classes/com/work/libweb/book/personinfo.class
18:30:37.100 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: ����
1回答
-
翔仔
2018-09-14
同学好,请把你ut那边的错误也截出来,光凭这个console里的信息没办法帮你定位呢,此外,同学需要先确保本地已经安装了maven,并且maven已经与eclipse连接,连接部分可以看下面的截图
在这里指定你的maven路径。指定好了之后,去到截图里你自己定义的maven repository目录下把相关jar清除,重新update maven project试试
你完成了maven相关配置后,如果还遇到问题,请按照我上面说的提供ut相关的错误信息(即ut变红附近有一堆错误的stack信息,需要提供这个)
022018-09-14
相似问题