控制台报错:
2019-04-01 20:42:05.662 [main] DEBUG com.kuuu.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 (?,?,?,?, ?,?,?,?,?,?, ?,?,?)
2019-04-01 20:42:05.703 [main] DEBUG com.kuuu.o2o.dao.ShopDao.insertShop - > Parameters: 1(Long), 2(Integer), 1(Long), 测试的店铺1(String), test1(String), test1(String), test1(String), null, null, 2019-04-01 20:42:05.642(Timestamp), 2019-04-01 20:42:05.642(Timestamp), 0(Integer), 审核中(String)
2019-04-01 20:42:05.708 [main] DEBUG com.kuuu.o2o.dao.ShopDao.insertShop - < Updates: 1
2019-04-01 20:42:05.736 [main] DEBUG com.kuuu.o2o.util.ImageUtil - current relativeAddr is :upload.item\shop\6\2019040120420562083.jpg
2019-04-01 20:42:05.736 [main] DEBUG com.kuuu.o2o.util.ImageUtil - current complete addr is:D:\projectdev\image\upload.item\shop\6\2019040120420562083.jpg
2019-04-01 20:42:05.867 [main] ERROR com.kuuu.o2o.util.ImageUtil - java.io.FileNotFoundException: D:\projectdev\image\upload.item\shop\6\2019040120420562083.jpg (系统找不到指定的路径。)
java.io.FileNotFoundException: D:\projectdev\image\upload.item\shop\6\2019040120420562083.jpg (系统找不到指定的路径。)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at net.coobird.thumbnailator.tasks.io.FileImageSink.write(Unknown Source)
at net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.write(Unknown Source)
at net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source)
at net.coobird.thumbnailator.Thumbnails$Builder.toFile(Unknown Source)
at com.kuuu.o2o.util.ImageUtil.generateThumbnail(ImageUtil.java:58)
at com.kuuu.o2o.service.impl.ShopServiceImpl.addShopImg(ShopServiceImpl.java:65)
at com.kuuu.o2o.service.impl.ShopServiceImpl.addShop(ShopServiceImpl.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
错误提示系统找不到指定路径
登录后可查看更多问答,登录/注册
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程