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. Solve

One-to-many, entity class, plus annotation
@JsonIgnoreProperties(value = {"handler"})

3. Reason

Some attributes in the bean that do not need to be converted are not ignored during json serialization, such as: handler

Guess you like

Origin blog.csdn.net/tmax52HZ/article/details/118251772