异常处理:No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer

 No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create

BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )

 

去掉FetchType.LAZY

@ManyToOne(fetch = FetchType.LAZY)

@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"}) 

posted @ 2017-07-10 17:23  等风来。。  Views(2849)  Comments(0Edit  收藏  举报
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------