728x90 반응형 batch1 Mybatis cannot change the executortype when there is an existing transaction cannot change the executortype when there is an existing transaction 스프링 배치를 활용하여 개발하다가 만난 에러를 정리합니다. 저 에러 메세지의 의미는 "한 트랜잭션안에서 ExecutorType을 변경할 수 없습니다." 라는 뜻이다. 우선 ExecutorType은 3가지가 존재하는데 간단하게 정리하자면 아래와 같다. ExecutorType.SIMPLE: 이 타입의 실행자는 아무것도 하지 않는다. 구문 실행마다 새로운 PreparedStatement를 생성한다. ExecutorType.REUSE: 이 타입의 실행자는 PreparedStatements를 재사용할 것이다. ExecutorType.BATCH: 이 실행자는 모든 update구문을 배치처리하고.. 2024. 3. 7. 이전 1 다음 728x90 반응형