Transactional
스프링부트 Transactional(readonly = true) 오류 원인 및 해결
문제 위 사진과 같이 The attribute readOnly is undefined for the annotation type Transactional 이라고 오류가 났다. 원인 - Transactional의 경우 import 할 수 있는 라이브러리가 2가지가 있다 1. import javax.transaction.Transactional 2. import org.springframework.transaction.annotation.Transactional; 1번의 경우 readonly = true/false 옵션을 허용하지 않는다. 해결 2번으로 import 해야 readonly 옵션을 사용할 수 있다.