Multi-table associated with lazy loading org.hibernate.LazyInitializationException due: could not initialize proxy - no Session

Originally considered is lazy loaded, so you can improve efficiency, but because of the time of emergency

The lazy loading changed urgent interim solution loaded

Another solution is not applicable transaction management hibernate and treated with serlvet, reference https://www.jianshu.com/p/89520964f458 have time to get another

Guess you like

Origin www.cnblogs.com/jnhs/p/11444739.html
Recommended