- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer
原因是:在实体类中 发现有字段为null,在转化成json的时候,fasterxml.jackson将对象转换为json报错
解决办法在实体类上面添加:
@JsonIgnoreProperties(value = { "hibernateLazyInitializer","handler"})