1.测试数据 ,postman 里面message出现这样的报错

JSON parse error: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name\n at [Source: (PushbackInputStream); line: 4, column: 2]

2.百度翻译(JSON分析错误:意外字符(’}’(代码125)):应以双引号开头的字段名;嵌套异常为com.fasterxml.jackson.core.json parse exception:意外字符(’}’(代码125)):应以双引号开头的字段名位于[source:(pushbackinputstream);line:4,列:2])

  1. 检查了发现多了一个逗号。
    在这里插入图片描述
  2. 去掉测试成功,细节很重要。
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐