在做项目过程中发现报错:
No serializer found for class entity.systemmess and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0])
自检:序列化对象的值为空或没有set/get方法----->我不存在该问题
最后参考csdn的各种方法,在实体类中添加语句:
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
问题解决啦!