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(',')分割成字符串就行了
