org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple ty

org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class com.vinsmoke.entity.vo.resp.BusinessTagInfo]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.vinsmoke.entity.vo.resp.BusinessTagInfo and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.gaea.common.vo.response.CommonResponse["data"]->com.vinsmoke.entity.vo.resp.BusinessInfoResp["businessList"]->java.util.ArrayList[0])

实体类加了@Data就好了

你可能感兴趣的:(org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple ty)