intellij idea 自动生成setter getter

windows下:

alt + insert,然后选择要生成的成员。

mac下:

command + N

原文地址:https://www.cnblogs.com/hustdc/p/9562530.html