Can not set int field Bulletin.Board.domain.posts.Post.view to null value
다음과 같은 에러가 떴다.
int를 Integer 타입으로 바꾸고 해결
int는 null로 초기화 할 수 없다.
참고 👇
https://www.python2.net/questions-803934.htm
스프링 부트 엔터티 클래스의 오류, int 필드를 null 값으로 설정할 수 없습니다
이것은 Entity 클래스입니다 @Column(length = 4) private int stu_id; 프로젝트를 실행할 때 null 값을 추가 할 수 있기 때문에 stu_id에 값을 전달하지 않습니다. 다음 오류가 평가되었습니다. Can not set int field
www.python2.net
반응형
'Framework > Spring Boot' 카테고리의 다른 글
Repository와 Service의 차이 (0) | 2021.09.19 |
---|---|
[Error] 수정 후 조회수 초기화 (0) | 2021.08.07 |
[Error] org.springframework.beans.factory.UnsatisfiedDependencyException (0) | 2021.07.22 |
[Error] "Request method 'GET' not supported" (0) | 2021.07.06 |
[Error] Request method 'POST' not supported (0) | 2021.06.26 |