idea press alt and enter, it will prompt serialization id

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324403573&siteId=291194637