Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.Integer out of START_ARRAY token
at [Source: (PushbackInputStream); line: 1, column: 7618] (through reference chain: com.kintech.model.domain.crm.CrmCompany["billformats"]->java.util.HashSet[0]->com.kintech.model.domain.crm.CrmCompanybillformat["usedType"])

 

原因:

java里面定义的 usedType字段类型 和你前端传过来的数据类型格式不对

比如usedType字段在java里面是String类型的,而我从前端传值过来的却是一个数组['1','2'],不能反序列实例化,所以报错了

我只需要在前端把数组xxx.join(',')分割成字符串就行了

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2022-01-24
  • 2021-10-07
  • 2022-01-06
猜你喜欢
  • 2022-12-23
  • 2022-02-16
  • 2022-01-29
  • 2021-08-11
  • 2021-10-01
  • 2021-07-17
相关资源
相似解决方案