Spring MVC 抛出 500 Could not write content 异常

xiaoxiao2021-02-28  32

Spring MVC 异常:

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

解决方案:

对象中里面 没有设置get/set方法

转载请注明原文地址: https://www.6miu.com/read-2150078.html

最新回复(0)