设置注释模板的入口: Window->Preference->Java->Code Style->Code Template
然后展开Comments节点就是所有需设置注释的元素啦。
类型(Types)注释标签(类的注释)
/**@Description
* @ClassName ${type_name}
* @author 你的名字
* @date ${currentDate:date('yyyy.MM.dd HH:mm:ss')}
*/
方法(Constructor & Methods)标签:
/**@Description
* @Title ${enclosing_method}
* ${tags} ${return_type}
* @author 你的名字
* @date ${currentDate:date('yyyy.MM.dd HH:mm:ss')}
*/