方法一:在方法上面加@Transactional注解
方法二:在xxxInfo类上面加@Proxy(lazy = false)
解决 could not initialize proxy [com.xxx.xxx.xxx.entity.xxxInfo#1] - no Session
猜你喜欢
转载自blog.csdn.net/qq_45106437/article/details/112601399
今日推荐
周排行