could not initialize proxy - no Session Exception
问题 I am working on the project which is based on hibernate and spring. I have spent two days but can't figure out why the "lazy exception" error is coming when i call this piece of code: public MemberUser SendEmail(MemberUser user) throws MailSendingException { // Check if password will be sent by mail // Hibernate.initialize(user); user = fetchService.fetch(user, FETCH); // user = userDao.load(user.getId(), FETCH); final MemberGroup group = user.getMember().getMemberGroup(); final boolean