1 . 自动生成serialVersionUID

  • File -> Settings -> Editor -> Inspections -> 搜索 uid ,勾选如图所示第二项
    IDEA 操作整理

  • 要生成的java类需要实现Serializable接口

  • 光标放到类名上,Alt + Enter键
    IDEA 操作整理

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2022-01-07
  • 2022-01-27
  • 2021-08-09
  • 2021-10-14
  • 2021-12-03
  • 2021-11-22
猜你喜欢
  • 2021-06-25
  • 2021-04-08
  • 2021-04-19
  • 2021-12-22
相关资源
相似解决方案