测试运行报错
1 | 十一月 28 , 2020 3 : 41 : 15 下午 org.springframework.test.context.web.WebTestContextBootstrapper getDefaultTestExecutionListenerClassNames<br>信息: 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]<br>十一月 28 , 2020 3 : 41 : 15 下午 org.springframework.test.context.web.WebTestContextBootstrapper getTestExecutionListeners<br>信息: 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 ]<br>十一月 28 , 2020 3 : 41 : 15 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions<br>信息: Loading XML bean definitions from class path resource [spring/spring-dao.xml]<br>十一月 28 , 2020 3 : 41 : 15 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions<br>信息: Loading XML bean definitions from class path resource [spring/spring-service.xml]<br>十一月 28 , 2020 3 : 41 : 16 下午 org.springframework.web.context.support.GenericWebApplicationContext prepareRefresh<br>信息: Refreshing org.springframework.web.context.support.GenericWebApplicationContext @29ee9faa : startup date [Sat Nov 28 15 : 41 : 16 CST 2020 ]; root of context hierarchy<br> 2020 - 11 - 28 15 : 41 : 16.698 [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging.<br> 2020 - 11 - 28 15 : 41 : 16.979 [main] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0- 0.9 . 5.2 [built 08 -December- 2015 22 : 06 : 04 - 0800 ; debug? true ; trace: 10 ]<br> 2020 - 11 - 28 15 : 41 : 17.925 [main] INFO c.m.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3 , acquireRetryAttempts -> 2 , acquireRetryDelay -> 1000 , autoCommitOnClose -> false , automaticTestTable -> null , breakAfterAcquireFailure -> false , checkoutTimeout -> 10000 , connectionCustomizerClassName -> null , connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hge0ywae3tu0rbalxalt|ffaa6af, debugUnreturnedConnectionStackTraces -> false , description -> null , driverClass -> com.mysql.cj.jdbc.Driver, extensions -> {}, factoryClassLocation -> null , forceIgnoreUnresolvedTransactions -> false , forceSynchronousCheckins -> false , forceUseNamedDriverClass -> false , identityToken -> 1hge0ywae3tu0rbalxalt|ffaa6af, idleConnectionTestPeriod -> 0 , initialPoolSize -> 3 , jdbcUrl -> jdbc:mysql: //localhost:3306/o2o?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 40, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]<br>2020-11-28 15:41:17.951 [main] WARN com.mchange.v2.resourcepool.BasicResourcePool - Bad pool size config, start 3 < min 10. Using 10 as start.<br>2020-11-28 15:41:18.779 [main] DEBUG com.imooc.o2o.dao.ShopDao.queryByShopId - ==> Preparing: SELECT s.shop_id, s.shop_name, s.shop_desc, s.shop_addr, s.phone, s.shop_img, s.priority, s.create_time, s.last_edit_time, s.enable_status, s.advice, a.area_id, a.area_name, sc.shop_category_id, sc.shop_category_name FROM tb_shop s, tb_area a, tb_shop_category sc WHERE s.area_id=a.area_id AND s.shop_category_id = sc.shop_category_id AND s.shop_id = ? <br>2020-11-28 15:41:18.859 [main] DEBUG com.imooc.o2o.dao.ShopDao.queryByShopId - ==> Parameters: 1(Long)<br>2020-11-28 15:41:18.929 [main] DEBUG com.imooc.o2o.dao.ShopDao.queryByShopId - <== Total: 0<br> |
老师,这报的是啥错呀?看不明白
13
收起
正在回答 回答被采纳积分+1
4. SSM到Spring Boot入门与综合实战
- 参与学习 人
- 提交作业 323 份
- 解答问题 8263 个
本阶段将带你学习主流框架SSM,以及SpringBoot ,打通成为Java工程师的最后一公里!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧