在service层调用dao的getOne方法时,老是报上面那个错。
个人解决方案:使用xxxDao.findById().get();
不知道啥原因,先记录下来,回头慢慢检查
SpringDataJpa org.hibernate.LazyInitializationException: could not initialize proxy no Session
猜你喜欢
转载自blog.csdn.net/Myc_CSDN/article/details/89228249
今日推荐
周排行