1.报错:

JSON parse error: Unrecognized token 'undefined': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'undefined': was expecting ('true', 'false' or 'null') at [Source: java.io.PushbackInputStream@655a8572; line: 1, column: 11]

2.分析:

很明显是json转换出问题,所以把问题范围限制在了前端。

3.处理:

使用JSON.Stringfy()将JavaScript 值转换为 JSON 字符串传到后台,报错解决。

4.后记:

此问题发生于你所传的的参数中含有数组或集合

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-07-13
  • 2021-12-23
  • 2022-12-23
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-11-30
  • 2021-09-14
  • 2021-07-18
相关资源
相似解决方案