-
Spring Boot | JPA Error, Executing an update/delete query▼ Backend/스프링 (Spring) 2021. 10. 14. 17:45반응형
Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query
UPDATE, DELETE를 사용할 경우 @Transactional 어노테이션을 추가해야 한다.
import org.springframework.transaction.annotation.Transactional; @Transactional
반응형'▼ Backend > 스프링 (Spring)' 카테고리의 다른 글
SpringBoot | JPA, @Query를 이용하여 쿼리 작성하기 (0) 2021.10.25 Spring Boot | JPA Error, Null return value from advice does not match primitive return (0) 2021.10.14 Spring Boot | Gradle, Jar 빌드&배포하기 (3) 2021.10.08 SpringBoot | lombok cannot find symbol (getter, setter) (0) 2021.08.23 Spring Boot | CSRF 설정 (Spring Security) (1) 2021.08.06