解决 could not initialize proxy [com.xxx.xxx.xxx.entity.xxxInfo#1] - no Session

方法一:在方法上面加@Transactional注解
在这里插入图片描述
方法二:在xxxInfo类上面加@Proxy(lazy = false)

猜你喜欢

转载自blog.csdn.net/qq_45106437/article/details/112601399
今日推荐