数据库更新错误:字段 'appeal_category_id' 缺少默认值
这个错误是在更新数据库时发生的。具体错误原因是java.sql.SQLException: Field 'appeal_category_id' doesn't have a default value。这个错误出现在com.ljxl.sc.gov_service_hotline.mapper.AppealMapper.insertAppeal方法中,参数设置出现了问题。具体的SQL语句是insert into gsh_appeal (user_id, title, content, undertaker, create_time, state, detail_result, img_url) values (?, ?, ?, ?, ?, ?, ?, ?)。原因是字段'appeal_category_id'没有默认值。这个错误可能存在于mapper/gov_service_hotline/AppealMapper.xml文件中。整体的错误代码是500。

原文地址: https://www.cveoy.top/t/topic/pWl9 著作权归作者所有。请勿转载和采集!