提交不到数据库了
来源:6-4 店铺信息编辑之前端实现
321121254
2017-11-30
2017-11-30 17:25:41.457 [http-nio-8080-exec-6] 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 (?,?,?,?, ?,?,?,?,?, ?,?, ?,?)
2017-11-30 17:25:41.458 [http-nio-8080-exec-6] DEBUG com.imooc.o2o.dao.ShopDao.insertShop - ==> Parameters: null, 3(Integer), 3(Long), 1111(String), 111返回
提交
11(String), 111(String), 111(String), null, null, 2017-11-30 17:25:41.456(Timestamp), 2017-11-30 17:25:41.456(Timestamp), 0(Integer), null
1回答
-
翔仔
2017-11-30
同学可以把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 (?,?,?,?, ?,?,?,?,?, ?,?, ?,?) 这句提炼出来,贴到sql 客户端里面 将问号替换成下面的输出
null, 3(Integer), 3(Long), 1111(String), 111返回
提交
11(String), 111(String), 111(String), null, null, 2017-11-30 17:25:41.456(Timestamp), 2017-11-30 17:25:41.456(Timestamp), 0(Integer), null
看看是否会报错
072017-12-01
相似问题