Tag Archives: MismatchedInputException: Cannot construct instance of

[Solved] Using Jackson string to convert entity to report error: mismatchedinput exception: cannot construct instance of

Error:

com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.xxx.AAA` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value

Solution:

Add null parameter constructor to the entity :

public AAA() {
}