Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.XXX.XXX.XXX.XXX` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (PushbackInputStream); line: 1, column: 2]
原因就是 实体类里面加的构造函数
一种解决方法就是 你如果非得用的话 再加一个空的构造就行
public ExamWare(Long id) {
this.id = id;
}
public ExamWare() {
}