type definition error
报错信息
“msg”: “Type definition error: [simple type, class com.yntengyun.glpt.travel.api.model.vos.GuideCalendarDetailVO]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.yntengyun.glpt.travel.api.model.vos.GuideCalendarDetailVO and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.yntengyun.glpt.travel.api.interceptors.model.Res[“data”]->java.util.ArrayList[0])”,
这种低级错误都会犯记录一下,服了自己,少了get\set方法。。。。。。

本文记录了一次遇到的Typedefinitionerror异常问题及其解决方案。该异常源于Jackson序列化库未能找到对应类com.yntengyun.glpt.travel.api.model.vos.GuideCalendarDetailVO的序列化方法,最终发现是因为缺少必要的get和set方法导致。
9842

被折叠的 条评论
为什么被折叠?



