Automatically generate setter and getter in java

1. You can right-click the java file to generate setters and getters, there will be Source in the menu, find the options with getters and setters, and check the properties of the required generation methods in the guidance interface!

 2. In the code, if a red wavy line appears below the property, it will also display several options, including Generate setter and getter.

Guess you like

Origin blog.csdn.net/SlinaW/article/details/120486458