我对hibernate有这个问题。情况是我在重新设计我的项目。我的上一个项目是使用JMS,它与我的POJO一起顺利运行。我在延迟加载字段方面遇到了问题,因为使用JMS的项目在延迟加载的情况下运行平稳,但是现在我试图检索数据库中的一些值,但是总是有一个hibernate例外,说明我想延迟加载的failed to lazilyit to GSON but when i comment this line of code it works fine. but when gson tries to convert it to json