No EntityManager with actual transaction available for current thread - cannot reliably process 'rem
No EntityManager with actual transaction available for current thread - cannot reliably process ‘remove’ call
此错误是我在进行删除的时候报的错;
原因是在删除操作上没有添加事务管理。
解决方法:
在对应的@Service或组件上添加@Transactional即可。
还没有评论,来说两句吧...