采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
整这个应该是后台错误 需要同学在后台对应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.1k 47
2.0k 41
2.7k 40
2.0k 39
1.6k 37
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号