When using Java serialization in idea, SerialVersionUID cannot be automatically generated, press alt+enter, and there is no prompt. This makes it difficult for people who are used to eclipse. So, I googled it and solved the problem successfully:
As shown in the figure above, set it up and you can achieve it. When you press alt+enter, idea will prompt to generate SerialVersionUID.
Well, a little trick about idea is introduced here. I am Jia Weicheng, welcome to join the blogger's technical exchange group, group number: 313145288