直接用附件中的class文件进行替换,重启Eclipse 设置注释风格: Window->Preferences->Java->CodeStyle->Code Templates->Comments->Getters/Setters Getters: /** * 获取${bare_field_name} * @return ${bare_field_name} ${bare_field_name} */ Setters: /** * 设置${bare_field_name} * @param ${bare_field_name} ${bare_field_n