JPA删除接口报错 : org.hibernate.LazyInitializationException: failed to lazily initialize a collection, could not initialize proxy - no Session
原因:
1.加事务注解 @Transactional
import org.springframework.transaction.annotation.Transactional;
2.方法必须是public修饰
原因:
1.加事务注解 @Transactional
import org.springframework.transaction.annotation.Transactional;
2.方法必须是public修饰