关于Eclipse注释模板设置

步骤

设置注释模板的入口:Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素。

1、类型(Code——>New Java files)注释标签(类的注释)

/**
* @author xxx的邮箱
* @version 1.0.0
* @date ${currentDate:date('yyyy/MM/dd HH:mm')}
* @since 1.0
*/

2、方法(Methods)标签

/**
* @return ${return_type}
* @exception
* @author xxx的邮箱
* @date ${currentDate:date('yyyy/MM/dd HH:mm')}
*/

3、重写方法

/**
* @return $return$
* @exception
* @author xxx的邮箱
* @date ${currentDate:date('yyyy/MM/dd HH:mm')}
*/

原文地址:https://www.cnblogs.com/ZJOE80/p/12621027.html