This is a well known issue of Spring MVC with Hibernate/JPA, "failed to lazily initialize a collection of role no session or session was closed". See Hibernate: failed to lazily initialize a collection of role, no session or session was closed
Many posts suggest using EAGER
to replace LAZY
, which can work but has performance lost. Is there a good solution for this issue?
Thanks.