728x90
에러코드
DataIntegrityViolationException
문제상황
: data.sql문에 Query문을 작성해서 미리 데이터를 넣어놓으려 했으나, 발생한 오류
원인
: 이미 DB에 Query문으로 넣으려는 데이터와 중복되는 값이 있는 데이터가 있다는 뜻이다.
해결방법
: 대개 식별자가 겹쳐서 그렇다. 식별자를 다른 번호로 바꿔보자
728x90
'Java & Spring > Error' 카테고리의 다른 글
[SpringBoot] Caused by: java.sql.SQLSyntaxErrorException: Can't DROP 'FKpvill444mvu6ace1wvwpc9iob'; check that column/key exists 에러 (0) | 2022.11.18 |
---|---|
[SpringBoot] httpmessagenotwritableexception 에러 (0) | 2022.11.17 |
[SpringBoot] Asciidoctor 인식 오류 (0) | 2022.11.06 |
[SpringBoot] failed to load applicationcontext (0) | 2022.11.02 |
[SpringBoot] jpasystemexception 예외 (0) | 2022.11.02 |