dto對(duì)象轉(zhuǎn)json報(bào)錯(cuò),這個(gè)有什么解決辦法?
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-12-22
你的DTO對(duì)象里面 沒有設(shè)置get/set方法