JPA No EntityManager with actual transaction available for current thread

原因是在删除操作上没有添加事务管理。

解决方法:

在对应的@Service或组件上添加@Transactional即可

原文地址:https://www.cnblogs.com/stilldream/p/15078528.html