nvalidDataAccessApiUsageException: Executing an update/delete query 오류
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.dao.InvalidDataAccessApiUsageException: Executing an update/delete query] with root cause
jakarta.persistence.TransactionRequiredException: Executing an update/delete query
at org.hibernate.internal.AbstractSharedSessionContract.checkTransactionNeededForUpdateOperation(AbstractSharedSessionContract.java:517) ~[hibernate-core-6.4.4.Final.jar:6.4.4.Final]
at org.hibernate.query.sqm.internal.QuerySqmImpl.executeUpdate(QuerySqmImpl.java:671) ~[hibernate-core-6.4.4.Final.jar:6.4.4.Final]
at cohttp://m.querydsl.jpa.impl.JPAUpdateClause.execute(JPAUpdateClause.java:76) ~[querydsl-jpa-5.1.0-jakarta.jar:na]
위와 같은 오류가 발생했을 때 transaction이 없어서 발생하는 오류로 update queryDSL에 @Transactional 선언을 하면 해결된다.