IDEA tool automatically generates JavaBean class

1, install GsonFormat plug: File -> Setting -> Plugins -> GsonFormat -> OK

 

 

 2, new a new Class empty file, then Alt + Insert (if you can not come out to try FN + Alt + Insert) shortcut key combination, a dialog box will pop up as follows. Write Json object inside the box. Click OK.

 

 

 

 3, and then click OK.

 

 4. Success

 

 

 

Guess you like

Origin www.cnblogs.com/zzcsza/p/12014316.html
Recommended