我在日志中收到此错误:
2016-04-06 09:22:24,623 W DefaultHandlerExceptionResolver - Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.PushbackInputStream@540c46e3; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.PushbackInputStream@540c46e3; line: 1, column: 1]
这很难调试,因为它没有告诉我JSON被发送到端点的是什么。如何打印出它试图反序列化的json?
我们正在使用tomcat作为Web容器