1.Code→Generate (快捷键:Alt+insert) 2.弹出的框中选择你想要的 3.例如点击Constructor,按住ctrl选中需要的属性,OK,生成带参;选择select None,空参