dto对象转json报错,是什么原因?

来源:-

勇心在馨

2016-05-28 19:44

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"])


写回答 关注

1回答

  • 慕盖茨6673935
    2017-06-28 16:05:59

    这个问题解决了吗,我也碰到了,怎么看都不知道怎么回事

Java高并发秒杀API之web层

Java实现高并发秒杀API的第三门课,介绍Web层的设计和实现

66085 学习 · 395 问题

查看课程

相似问题