再打开的编辑框内,同时按下Shift+Alt+S ,出现以下画面选择Generate Getter and Setter……,出现以下画面可以点击Select All同时给所有变量添加get,set方法,也可以从左侧选择一些添加get,set方法。最后点击OK注意:此方法还可以生成其他方法:比如:toString Last modification:January 29, 2018 © Allow specification reprint Support Appreciate the author AliPayWeChat Like If you think my article is useful to you, please feel free to appreciate