수 록

  • 홈
  • 태그

constraint [null] 1

[ Springboot - h2 ] could not execute statement ... constraint [null] , h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column SQL statement 해결하기

Dev , Test DB 분리 후 테스트를 시도하던 중 아래와 같은 오류가 났습니다. org.springframework.dao.DataIntegrityViolationException: could not execute statement [NULL not allowed for column "ID"; SQL statemen .. insert into ... constraint [null] --- org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "ID"; SQL statement: 오류 내용을 살펴보면 PK로 설정했던 id 필드가 null 이 허용되지 않는다는 것 같습니다. 하지만 아래 그림처럼 누락 없..

trouble_shooting 2023.10.09
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (39)
    • Java (5)
    • Spring (10)
    • HTML & CSS & JavaScript (1)
    • Database (7)
    • CICD (2)
    • Algorithm (3)
    • trouble_shooting (5)
    • 기타 (6)
    • ... (0)

최근글과 인기글

  • 최근글
  • 인기글

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Copyright © Kakao Corp. All rights reserved.

  • 작업중..

티스토리툴바