问答详情
源自:-

dto对象转json报错,这个有什么解决办法?

HTTP Status 500 - Could not write content: No serializer found for class org.seckill.dto.Exposer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.seckill.dto.SeckillResult["data"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.seckill.dto.Exposer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.seckill.dto.SeckillResult["data"])

提问者:勇心在馨 2016-05-28 19:55

个回答

  • gaidie
    2016-12-22 10:00:25

    你的DTO对象里面 没有设置get/set方法