跑第一个dao测试的错误看不懂啊

来源:4-7 mybatis整合Spring编码

WallenHan

2016-07-23 18:19

七月 23, 2016 6:14:10 下午 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.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
七月 23, 2016 6:14:10 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
信息: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@1cab0bfb, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5e955596, org.springframework.test.context.support.DirtiesContextTestExecutionListener@50de0926, org.springframework.test.context.transaction.TransactionalTestExecutionListener@2473b9ce, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@60438a68]
七月 23, 2016 6:14:10 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [spring/spring-dao.xml]
七月 23, 2016 6:14:11 下午 org.springframework.context.support.GenericApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.GenericApplicationContext@f0f2775: startup date [Sat Jul 23 18:14:11 CST 2016]; root of context hierarchy
七月 23, 2016 6:14:11 下午 org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
信息: Loading properties file from class path resource [jdbc.properties]
七月 23, 2016 6:14:11 下午 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
七月 23, 2016 6:14:12 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
18:14:12.843 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
18:14:13.085 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VFS
18:14:13.085 [main] DEBUG org.apache.ibatis.io.ResolverUtil - JBoss 6 VFS API is not available in this environment.
18:14:13.090 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VirtualFile
18:14:13.092 [main] DEBUG org.apache.ibatis.io.ResolverUtil - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
18:14:13.094 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Using VFS adapter org.apache.ibatis.io.DefaultVFS
18:14:13.095 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity
18:14:13.095 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity
18:14:13.216 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: Seckill.class
18:14:13.216 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: SuccessKilled.class
18:14:13.217 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Listing file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity
18:14:13.217 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity/Seckill.class
18:14:13.217 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity/Seckill.class
18:14:13.218 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: ����   1 \
18:14:13.219 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity/SuccessKilled.class
18:14:13.219 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/D:/IdeaProjects/seckill-webapp/target/classes/com/seckill/entity/SuccessKilled.class
18:14:13.220 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: ����   1 T
18:14:13.223 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class com.seckill.entity.Seckill matches criteria [is assignable to Object]
18:14:13.224 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class com.seckill.entity.SuccessKilled matches criteria [is assignable to Object]
18:14:13.226 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Scanned package: 'com.seckill.entity' for aliases
18:14:13.284 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed configuration file: 'class path resource [mybatis-config.xml]'
18:14:13.395 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\IdeaProjects\seckill-webapp\target\classes\mapper\SeckillDao.xml]'
18:14:13.413 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\IdeaProjects\seckill-webapp\target\classes\mapper\SuccessKilledDao.xml]'18:14:13.509 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession
18:14:13.520 [main] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@620aa4ea] was not registered for synchronization because synchronization is not active
七月 23, 2016 6:14:13 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 3, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgekg19i6g7u7h1ecq8i3|341814d3, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgekg19i6g7u7h1ecq8i3|341814d3, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://192.168.99.100:3306/test, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
七月 23, 2016 6:14:16 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@27aa2c57 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (3). Last acquisition attempt exception: 
java.sql.SQLException: Access denied for user 'Wanli'@'192.168.99.1' (using password: YES)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:959)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871)
	at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1686)
	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1207)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2254)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2285)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2084)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
	at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
	at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
	at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
	at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

18:14:16.737 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@620aa4ea]

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
### The error may exist in file [D:\IdeaProjects\seckill-webapp\target\classes\mapper\SeckillDao.xml]
### The error may involve com.seckill.dao.SeckillDao.querySeckillById
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:76)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:399)
	at com.sun.proxy.$Proxy13.selectOne(Unknown Source)
	at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:165)
	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:69)
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
	at com.sun.proxy.$Proxy14.querySeckillById(Unknown Source)
	at com.seckill.dao.SeckillDaoTest.testQuerySeckillById(SeckillDaoTest.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:224)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:68)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
Caused by: org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
### The error may exist in file [D:\IdeaProjects\seckill-webapp\target\classes\mapper\SeckillDao.xml]
### The error may involve com.seckill.dao.SeckillDao.querySeckillById
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
	
	

ps 我真实的数据库是这个配置的;

driver=com.mysql.jdbc.Driver
url=jdbc:mysql://192.168.99.100:3306/test
username=test
password=test

错误提示里什么 wali@192.168.99.100  是什么鬼? 我没配啊 这个是我主机的用户名和ip

写回答 关注

8回答

  • qq_花开有声_2
    2016-07-26 02:09:28
    已采纳

    变量username默认是你的主机名,换个变量名就行了 比如jdbc.username

    qq_德行天... 回复luoyu8...

    请问下怎么解决的

    2017-04-17 13:57:02

    共 5 条回复 >

  • _不具名的悲伤_
    2019-01-12 20:52:48

    我的报错跟您的一样,请问是怎么改的呀

  • 三牌楼java韬
    2017-11-16 14:42:35

    2017-11-16 14:41:19 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.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]


    java.lang.UnsupportedClassVersionError: javax/servlet/ServletContext : Unsupported major.minor version 51.0


    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at java.lang.Class.getDeclaredConstructors0(Native Method)

    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)

    at java.lang.Class.getConstructor0(Class.java:2708)

    at java.lang.Class.getDeclaredConstructor(Class.java:1987)

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104)

    at org.springframework.test.context.support.AbstractTestContextBootstrapper.instantiateListeners(AbstractTestContextBootstrapper.java:192)

    at org.springframework.test.context.support.AbstractTestContextBootstrapper.getTestExecutionListeners(AbstractTestContextBootstrapper.java:174)

    at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:104)

    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:124)

    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:115)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)

    at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)

    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

    at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)

    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

    at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)

    at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:31)

    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)

    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)

    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)

    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


    Disconnected from the target VM, address: '127.0.0.1:53413', transport: 'socket'


    Process finished with exit code -1

    我这个是什么意思

  • 慕无忌5301941
    2016-11-21 14:59:21

    Class not found: org.jboss.vfs.VFS

    JBoss 6 VFS API is not available in this environment.

    这个问题怎么解决


  • WallenHan
    2016-09-05 23:20:29

    其实就是和项目加载配置文件的顺序有关,先取系统的配置,当刚好你的取名和系统相关的时候就会导致错误的识别。我就犯了这个错误。

    慕仔7064...

    正解,兄弟!

    2017-05-27 17:29:14

    共 1 条回复 >

  • julian_208
    2016-08-08 15:35:57

    请问这些什么问题呢?

    Wallen...

    你贴的error信息呢 ?

    2016-09-11 20:29:48

    共 1 条回复 >

  • julian_208
    2016-08-08 15:35:05

    15:31:01.831 [main] INFO  c.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited

    15:31:01.850 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

    15:31:01.939 [main] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VFS

    15:31:01.939 [main] DEBUG org.apache.ibatis.io.JBoss6VFS - JBoss 6 VFS API is not available in this environment.

    15:31:01.941 [main] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VirtualFile

    15:31:01.942 [main] DEBUG org.apache.ibatis.io.VFS - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.

    15:31:01.943 [main] DEBUG org.apache.ibatis.io.VFS - Using VFS adapter org.apache.ibatis.io.DefaultVFS

    15:31:01.943 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity

    15:31:01.943 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity

    15:31:02.051 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: Seckill.class

    15:31:02.052 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: SuccessKilled.class

    15:31:02.053 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Listing file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity

    15:31:02.053 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity/Seckill.class

    15:31:02.054 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity/Seckill.class

    15:31:02.055 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: ????1:org/seckill/entity/Seckilljava/lang/Object seckillIdJnameLjava/lang/String;numberI startTimeLjava/util/Date;endTime

    15:31:02.056 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity/SuccessKilled.class

    15:31:02.056 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/Users/liangjun/Documents/workspace/seckill/target/classes/org/seckill/entity/SuccessKilled.class

    15:31:02.057 [main] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: ????15 org/seckill/entity/SuccessKilledjava/lang/Object seckillIdJ userPhonestateS

    15:31:02.058 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class org.seckill.entity.Seckill matches criteria [is assignable to Object]

    15:31:02.059 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class org.seckill.entity.SuccessKilled matches criteria [is assignable to Object]

    15:31:02.060 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Scanned package: 'org.seckill.entity' for aliases

    15:31:02.133 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed configuration file: 'class path resource [mybatis-config.xml]'

    15:31:02.221 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [/Users/liangjun/Documents/workspace/seckill/target/classes/mapper/SeckillDao.xml]'

    15:31:02.236 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [/Users/liangjun/Documents/workspace/seckill/target/classes/mapper/SuccessKilledDao.xml]'

    15:31:40.986 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession

    15:31:40.993 [main] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c5e01b1] was not registered for synchronization because synchronization is not active

    15:31:41.418 [main] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@1f4da763] will not be managed by Spring

    15:31:41.431 [main] DEBUG org.seckill.dao.SeckillDao.queryById - ==>  Preparing: select seckill_id, name, number, start_time, end_time, create_time from seckill where seckill_id = ? 

    15:31:41.492 [main] DEBUG org.seckill.dao.SeckillDao.queryById - ==> Parameters: 1000(Long)

    15:31:41.530 [main] DEBUG org.seckill.dao.SeckillDao.queryById - <==      Total: 1

    15:31:41.531 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c5e01b1]

    org.seckill.entity.Seckill@7d6556ab


  • Asan
    2016-07-24 09:03:33

    看看是不是数据库连接配置文件有重复

Java高并发秒杀API之业务分析与DAO层

Java实现高并发秒杀API的第一门课,还等什么,赶快来加入吧

87424 学习 · 496 问题

查看课程

相似问题