com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class (through reference chain: com.jd.lean.mjp.dal.entity.Province_$$_ jvste70_ 0[“handler”])

1. Background

When using mybatis one to many collection query, an error is reported

2. Solution

One to many, entity class, with annotation
@ jsonignoreproperties (value = {“handler”})

3. Reasons

JSON serialization does not ignore some properties in the bean that do not need to be converted, such as handler

Read More: