serialVersionUID 생성하는 방법
Settings - Editor - Inspections
1) Serializable class without 'serialVersionUID' 체크
2) 'serialVersionUID' field not declared 'private static final long' 체크


3) implements Serializable
4) 클래스명에 커서 두고 Alt + Enter
Create constant field 'serialVersionUID' in 어쩌구 클릭
미리보기에서는 int로 나와 있지만 생성하면 long으로 만들어지더라..

https://m.blog.naver.com/writer0713/220922099055
https://blog.naver.com/PostView.nhn?blogId=jieuni4u&logNo=222041348411&categoryNo=0&parentCategoryNo=0&viewDate=¤tPage=1&postListTopCurrentPage=1&from=postView
'업무 > 공부' 카테고리의 다른 글
| 윈도우 hosts 파일 수정하는 방법 (포스트맨 Error: getaddrinfo ENOTFOUND 에러) (0) | 2023.01.17 |
|---|---|
| [iBatis] resultMap 리턴 타입 컬럼 빼먹으면 null값 넘어옴 (0) | 2022.12.27 |
| 리팩토링 주요 기법 + IntelliJ 단축키 (0) | 2022.12.19 |
| [Java] 리터럴, new / 기본 타입, 참조 타입 / 문자열 비교 equals, == 차이 (0) | 2022.12.14 |
| [IT] Third Party란? (0) | 2022.12.14 |