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"}) 

相关文章:

  • 2022-12-23
  • 2021-08-06
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-05-30
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案