在请求参数中,加入了@Builder注解,会报错,加上@AllArgsConstructor 与@NoArgsConstructor
就能解决问题,但在请求参数上不建议写@Builder注解,一个@Data就行了
{
"code":500,
"message":"JSON parse error: Cannot construct instance of `com.xxx` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.xxx` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (PushbackInputStream); line: 2, column: 2]"
}