exception1 [Spring, JPA] InvalidDataAccessApiUsageException 해결 해결 방법 해당 쿼리문 혹은 함수에 @Transactional 어노테이션 붙여주기. 원인 JpaRepository를 상속은 인터페이스에서 @Query를 이용하여 update 문을 실행할려고 했더니 만난 에러. InvalidDataAccessApiUsageException: You're trying to execute a streaming query method without a surrounding transaction that keeps the connection open so that the Stream can actually be consumed. Make sure the code consuming the stream uses @Transactional or any other way of decla.. 2022. 12. 5. 이전 1 다음