4-5运行的时候出了这样的问题,不知道怎么解决

来源:4-5 店铺注册之Service层的实现

韬1430337

2020-09-08

2020-09-08 11:17:50:901[main] INFO o.s.t.c.support.DefaultTestContextBootstrapper-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]
2020-09-08 11:17:50:917[main] INFO o.s.t.c.support.DefaultTestContextBootstrapper-Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2df32bf7, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@530612ba, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@2a40cd94, org.springframework.test.context.support.DirtiesContextTestExecutionListener@f4168b8, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3bd94634, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@58a90037]
2020-09-08 11:17:51:399[MLog-Init-Reporter] INFO com.mchange.v2.log.MLog-MLog clients using slf4j logging.
2020-09-08 11:17:51:822[main] INFO com.mchange.v2.c3p0.C3P0Registry-Initializing c3p0-0.9.5.4 [built 23-March-2019 23:00:48 -0700; debug? true; trace: 10]
2020-09-08 11:17:52:297[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 -> 2s0f17actvzd8yfqk92k|53fe15ff, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.cj.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 2s0f17actvzd8yfqk92k|53fe15ff, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/020?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, 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 ]
2020-09-08 11:17:52:317[main] WARN com.mchange.v2.resourcepool.BasicResourcePool-Bad pool size config, start 3 < min 10. Using 10 as start.
2020-09-08 11:17:52:553[main] DEBUG com.imooc.o2o.dao.ShopDao.insertShop-> Preparing: INSERT INTO tb_shop(owner_id,area_id,shop_category_id,shop_name,shop_desc,shop_addr, phone,shop_img,priority,create_time,last_edit_time,enable_status,advice) VALUES (?,?,?, ?,?,?,?,?, ?,?,?, ?,?)
2020-09-08 11:17:52:588[main] DEBUG com.imooc.o2o.dao.ShopDao.insertShop-> Parameters: 1(Long), 2(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2020-09-08 11:17:52.525(Timestamp), 2020-09-08 11:17:52.525(Timestamp), 0(Integer), 审核中(String)
2020-09-08 11:17:52:589[main] DEBUG com.imooc.o2o.dao.ShopDao.insertShop-<== Updates: 1
2020-09-08 11:17:52:610[main] DEBUG com.imooc.o2o.util.ImageUtil-current relativeDaar is:update\item\shop\9\2020-09-08-11-17-5281752.jpg
2020-09-08 11:17:52:611[main] DEBUG com.imooc.o2o.util.ImageUtil-current complete addr is:D:\IMG\update\item\shop\9\2020-09-08-11-17-5281752.jpg

写回答

1回答

翔仔

2020-09-08

同学好,从你的信息里没看到有啥问题啊,能否描述,或者提供问题截图?我看信息里面没有error 都是正常输出,要么就是你的数据不对了,需要检查一下

1
3
翔仔
回复
韬1430337
继续调试看看,insert或者update shop的步骤里面,看看报了什么错,如果没有报错,看看console输出的sql有没有问题,mapper配置有没有问题
2020-09-10
共3条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程