十月 21, 2018 8:21:15 下午 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]
十月 21, 2018 8:21:15 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
信息: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@5315b42e, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2ef9b8bc, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5d624da6, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1e67b872, org.springframework.test.context.transaction.TransactionalTestExecutionListener@60addb54, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3f2a3a5]
十月 21, 2018 8:21:15 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
十月 21, 2018 8:21:16 下午 org.springframework.context.support.GenericApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.GenericApplicationContext@1753acfe: startup date [Sun Oct 21 20:21:16 CST 2018]; root of context hierarchy
十月 21, 2018 8:21:17 下午 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
十月 21, 2018 8:21:18 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
十月 21, 2018 8:21:18 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/Dept.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/Dept (wrong name: com/wx/crud/bean/Dept)
十月 21, 2018 8:21:18 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/DeptExample.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/DeptExample (wrong name: com/wx/crud/bean/DeptExample)
十月 21, 2018 8:21:18 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/DeptExample$Criteria.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/DeptExample$Criteria (wrong name: com/wx/crud/bean/DeptExample$Criteria)
十月 21, 2018 8:21:18 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/DeptExample$Criterion.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/DeptExample$Criterion (wrong name: com/wx/crud/bean/DeptExample$Criterion)
十月 21, 2018 8:21:18 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/DeptExample$GeneratedCriteria.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/DeptExample$GeneratedCriteria (wrong name: com/wx/crud/bean/DeptExample$GeneratedCriteria)
十月 21, 2018 8:21:19 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/People.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/People (wrong name: com/wx/crud/bean/People)
十月 21, 2018 8:21:19 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/PeopleExample.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/PeopleExample (wrong name: com/wx/crud/bean/PeopleExample)
十月 21, 2018 8:21:19 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/PeopleExample$Criteria.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/PeopleExample$Criteria (wrong name: com/wx/crud/bean/PeopleExample$Criteria)
十月 21, 2018 8:21:19 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/PeopleExample$Criterion.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/PeopleExample$Criterion (wrong name: com/wx/crud/bean/PeopleExample$Criterion)
十月 21, 2018 8:21:19 下午 org.apache.ibatis.io.ResolverUtil warn
警告: Could not examine class 'com\wx\crud\bean/PeopleExample$GeneratedCriteria.class' due to a java.lang.NoClassDefFoundError with message: com\wx\crud\bean/PeopleExample$GeneratedCriteria (wrong name: com/wx/crud/bean/PeopleExample$GeneratedCriteria)
org.apache.ibatis.binding.MapperProxy@7354b8c5
十月 21, 2018 8:21:19 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge0yu9y15s0xl81jzb833|1329eff, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge0yu9y15s0xl81jzb833|1329eff, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://locatlhost:3366/test, lastAcquisitionFailureDefaultUser -> null, 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 ]
十月 21, 2018 8:21:55 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5b608b5c -- 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 (30). Last acquisition attempt exception: 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2203)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2236)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2035)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor10.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)
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)
Caused by: java.net.UnknownHostException: locatlhost
at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:188)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
... 19 more十月 21, 2018 8:21:55 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@207d77c2 -- 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 (30). Last acquisition attempt exception: 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.GeneratedConstructorAcce

解决方案 »

  1.   

    检查一下 applicationContext.xml 中 有关 路径为"'com\wx\crud\bean/xxx.class"的配置
      

  2.   

    配置贴个图就好了,这样光看错有点模糊,检查你的mysql服务起了没,看看配置都对不对
      

  3.   

    com\wx\crud\bean/People.class----->>>com\wx\crud\bean\People.class
      

  4.   

    注解配置好了吗?检查不到你的class那些的
      

  5.   

    Caused by: java.net.UnknownHostException: locatlhost
      

  6.   

    参考:史上最简单的spring+springMVC+mybaits整合SSM框架~Simple-SSM
      

  7.   

    idea:idea配置自动生成mybaits实体类和mapper.xml ~ better-mybatis-generator
    eclipse:教你一步步搭建ssm框架,第四步自动生成mybaits实体类,配置文件 - 2018
      

  8.   

    locatlhost  改成 localhost
    单词都拼错,这就很蛋疼