使用经典模式生成主从表,两表的id都是inter类型,数据表设置为 int (19) ,从表 pid int(19) 关联 主表 id int(19),java类文件在所有相关的字段及方法均对应为 Long 类型,
当前新增时出现问题, 在弹出页面中主表、从表输入信息,无法保存,提示:
JSON parse error: Cannot deserialize value of type `java.lang.Long` from String "16343110013690918651": not a valid Long value; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.lang.Long` from String "16343110013690918651": not a valid Long value
at [Source: (PushbackInputStream); line: 1, column: 76] (through reference chain: com.tsingfy.team.project.vo.TeamProjectTemplatePage["teamTaskStagesTemplateList"]->java.util.ArrayList[0]->com.tsingfy.team.project.entity.TeamTaskStagesTemplate["id"])