-
SPRING JPA 사용중 JpaSystemException, org.hibernate.exception.GenericJDBCException: could not execute statementSPRING 공부/오류잡기 2022. 6. 24. 21:37
Test 실행 중 이 오류가 나서 확인을 해보니
GeneratedValue인 ID값에 세팅(임의의값) 을 해서 save를 해주거나,
DB에서 봤을 때 해당 컬럼 값이 AI값이 아니면 해당 오류를 내뿜는다.
나의 경우엔 후자였기 때문에 DB에서 AI값을 켜주었다.
'SPRING 공부 > 오류잡기' 카테고리의 다른 글
JAVA 11사용시 java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (0) 2022.03.17