报错:[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