错误信息:JSONparse error:Cannot deserializevalue of typelongfromString"良好":not avalidlongvalue;nestedexception is
valid long value at [Source: (org.springframework.util.StreamUtils$NonClosinglnputStream); line: 1, column: 54] (through
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type *long from String."良好": not a
reference chain: com.zzyl.nursing.domain.NursingPlan["status"])

错误分析:

  1. 在用若依框架生成代码的时候,字段名称为状态的类型为Long,更改为Integer类型的。

  2. 可能是在与浏览器进行交互的时候传入的信息不对,比如状态需要一个Integer类型的,传入的时候传入了一个String类型的数据,可能会发生这样的错误。