org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class com.oat.network.entity.dto.PivotTableData]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.oat.network.entity.dto.PivotTableData and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.oat.common.exception.response.Respon[“data”]->com.alibaba.fastjson.JSONObject[“serviceDistanceDetails”]->java.util.HashMap[“relationBody”])
at org
- 解决方案:
- 在相应的类中加上set、get方法,经过测试不再报错。