해결방법
MySQLWorkbench에서 al(auto increament) 체크를 해주면 된다.
출처
https://hak0205.tistory.com/63
[에러] Field 'id' doesn't have a default value
해당 에러에서 나타는것과 같이 id값의 기본값이 없다고 나왔습니다. 분명히 기본으로 생성하게 @GeneratedValue(strategy = GenerationType.IDENTITY)를 사용해서 기본으로 키 값이 생성되게 만들었습니다. -..
hak0205.tistory.com
'에러 해결' 카테고리의 다른 글
Failed to connect to service endpoint 에러 해결 (0) | 2021.12.24 |
---|---|
리눅스 ruby ./ no such file or directory 에러 해결 (0) | 2021.12.17 |
junit5 failed to load applicationcontext 에러 해결 (0) | 2021.12.13 |
@Valid org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument 에러 해결 (0) | 2021.12.08 |
intellij 디렉토리 옮긴 후 클래스 import 에러 (0) | 2021.11.21 |