2

IDEA设置自动添加serialVersionUID

 2 years ago
source link: https://syxdevcode.github.io/2021/10/11/IDEA%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E6%B7%BB%E5%8A%A0serialVersionUID/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

IDEA设置自动添加serialVersionUID

发表于

2021-10-11 更新于 2022-04-18 分类于 IDEA

本文字数: 170 阅读时长 ≈ 1 分钟

序列化过程:序列化操作的时候系统会把当前类的serialVersionUID写入到序列化文件中,当反序列化时系统会去检测文件中的serialVersionUID,判断它是否与当前类的serialVersionUID一致,如果一致就说明序列化类的版本与当前类版本是一样的,可以反序列化成功,否则失败。

IDEA设置:

微信截图_20211011150411.png

Alt+Enter即可显示:

微信截图_20211012172051.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK