exceptio专题

Unable to evaluate the expression Method threw ‘org.hibernate.LazyInitializationException‘ exceptio

背景 Unable to evaluate the expression Method threw ‘org.hibernate.LazyInitializationException’ exception.如何解决????? 使用hibernate从一方获取多方信息的时候发生 这个异常与hibernate加载关联对象的2种方式有关,一个是懒加载方式,一个是立即加载方式. 方案 步骤1