Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY

线上问题:

{
"timestamp": "1544510665",
"status": 400,
"error": "Bad Request",
"exception": "org.springframework.http.converter.HttpMessageNotReadableException",
"message": "Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: java.io.PushbackInputStream@6d9b2ba7; line: 18, column: 18] (through reference chain: com.imdada.shine.dao.vo.SenderVo[\"poiAddress\"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: java.io.PushbackInputStream@6d9b2ba7; line: 18, column: 18] (through reference chain: com.imdada.shine.dao.vo.SenderVo[\"poiAddress\"])",
"path": "/toc/corp/client/addSender"
} 解决方案:
发现是在解析json字符串的时候,某个字段的值本来应该是字符串,结果是[开头的
上一篇:JavaEE XML SAX解析


下一篇:Cocos Creator iPhoneX适配的解决办法