标签:hibernate org one not com 默认 category exception ESS
org.hibernate.LazyInitializationException: could not initialize proxy [com.angus.entity.ProductCategory#1] - no Session
在出问题的实体类上加@Proxy(lazy = false)
hibernate默认是懒加载的。
org.hibernate.LazyInitializationException: could not initialize proxy [com.angus.entity.ProductCateg
标签:hibernate org one not com 默认 category exception ESS
原文地址:https://www.cnblogs.com/bestjdg/p/12105100.html