-
Test 실행 중 이 오류가 나서 확인을 해보니 GeneratedValue인 ID값에 세팅(임의의값) 을 해서 save를 해주거나, DB에서 봤을 때 해당 컬럼 값이 AI값이 아니면 해당 오류를 내뿜는다. 나의 경우엔 후자였기 때문에 DB에서 AI값을 켜주었다.
JAVA 11버전에서 javax 라이브러리를 내장하고 있지 않기 때문에 의존성 추가를 해주어야한다. 인프런 김영한이사님의 강의에서는 JAVA 8 버전을 사용하고 있기 때문에 문제가 없었다. javax.xml.bind jaxb-api 2.3.0 를 pom.xml에 추가해주자!