采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
整这个应该是后台错误 需要同学在后台对应controller方法里设置断点调试 应该是更新数据库失败 需要调试
{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}
登录后可查看更多问答,登录/注册
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
2.0k 47
1.9k 41
2.5k 40
1.8k 39
1.5k 37