【spring data jpa】使用spring data jpa 的删除操作,需要加注解@Modifying @Transactional 否则报错如下: No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call
使用spring data jpa 的删除操作,需要加注解
@Modifying
@Transactional
否则报错如下:
No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call