请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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

正在回答 回答被采纳积分+3

1回答

翔仔 2020-09-08 23:03:36

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

1 回复 有任何疑惑可以回复我~
  • 提问者 韬1430337 #1
    那个问题解决了之后就出现了
     D:\IMG\update\item\shop\17\2020-09-09-15-43-4980784.jpg (系统找不到指定的路径。)
    我调试过程中发现这个文件似乎并没有被创建
    回复 有任何疑惑可以回复我~ 2020-09-09 16:06:59
  • 提问者 韬1430337 #2
    又尝试了一下发现能够成功创建出带水印的图片   
    但是依旧不能上传到数据库上面
    回复 有任何疑惑可以回复我~ 2020-09-09 16:58:58
  • 翔仔 回复 提问者 韬1430337 #3
    继续调试看看,insert或者update shop的步骤里面,看看报了什么错,如果没有报错,看看console输出的sql有没有问题,mapper配置有没有问题
    回复 有任何疑惑可以回复我~ 2020-09-10 02:11:24
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号