No EntityManager with actual transaction available for current thread - cannot reliably process 'rem
调用jpa进行删除的时候报错
No EntityManager with actual transaction available for current thread - cannot reliably process ‘remove’ call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process ‘remove’ call
在@Service 上加事务注解@Transactional即可
还没有评论,来说两句吧...