程序员一代码搬运工
【Java学习心得和Java学习技术个人总结】

Unexpected character (‘o’ (code 111)): was expecting double-quote to start field name.

报错:[org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpMessageNotReadable]Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON document: Unexpected character (‘o’ (code 111)): was expecting double-quote to start field name
at [Source: java.io.PushbackInputStream@1f424599; line: 3, column: 4]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (‘o’ (code 111)): was expecting double-quote to start field name.

在postman调试中,出现已上报错。

原因是参数形式未加引号。

错误:{ open : 1 }

正确:{ “open” : 1}

附引:elasticsearch在window中报错:”Unexpected character (‘m’ (code 109)): was expecting double-quote to start

赞(0)
未经允许不得转载:程序员一代码搬运工 » Unexpected character (‘o’ (code 111)): was expecting double-quote to start field name.
分享到: 更多 (0)