[JPA] No EntityManager with actual transaction available for current thread

AUGUST 29, 2020

문제

deleteBy.. 메소드 호출시 오류 발생

원인

https://stackoverflow.com/questions/32269192/spring-no-entitymanager-with-actual-transaction-available-for-current-thread

해결

메소드에 @transaction 을 추가하는 방법으로 해결하였다.
잘 모르겠는데… JPA delete transaction 을 찾아봐야겠다.


작업 기록 블로그