(org.hibernate.LazyInitializationException:19) - could not initialize proxy错误

在刚插入数据后,马上使用dao进行query数据,导致这个错误。

<many-to-one>的属性设置lazy="flase" 这样就可以了

相关文章:

  • 2022-01-18
  • 2021-07-20
  • 2021-10-21
  • 2022-12-23
  • 2021-08-20
  • 2021-06-02
  • 2021-05-03
猜你喜欢
  • 2021-07-23
  • 2021-12-09
  • 2021-06-14
  • 2022-12-23
  • 2021-05-22
相关资源
相似解决方案