IDEA quickly generates get and set methods

1. Right-click on the IDEA input code interface :

2. Select Generate according to the icon

3. When the attribute has been named on the page you are on , it will be displayed after following the above steps:

Click Getter and Setter 

4. After selecting the attributes that want to have set and get methods , click the ok button

Guess you like

Origin blog.csdn.net/qq_59942266/article/details/126520189