업무/공부
[IntelliJ] serialVersionUID 생성 방법
60cod
2022. 12. 26. 10:13
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