console不显示错误 在页面显示错误 看不到 求老师传授方法

来源:6-5 店铺列表展示之Dao层的实现

qq_一缕阳光_31

2018-02-16

http://img.mukewang.com/szimg/5a86c50d00019ed013660599.jpg

写回答

1回答

翔仔

2018-02-16

整这个应该是后台错误 需要同学在后台对应controller方法里设置断点调试 应该是更新数据库失败 需要调试

0
1
qq_一缕阳光_31
{success=false, errMsg=addShop error: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'owner_id' cannot be null ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: 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 (?,?,?,? ,?,?,?,?,?, ?,?,?,? ) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'owner_id' cannot be null ; SQL []; Column 'owner_id' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'owner_id' cannot be null}
2018-02-16
共1条回复

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

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

5128 学习 · 8152 问题

查看课程