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

来源:-

勇心在馨

2016-05-28 19:55

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回答

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

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

    qq_风过无...

    爱死你了

    2018-04-15 17:05:31

    共 1 条回复 >

Java高并发秒杀API之高并发优化

Java实现高并发秒杀API的第四门课,小伙伴一定可以从中受益

78601 学习 · 170 问题

查看课程

相似问题