战狂粗人张

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

步骤

设置注释模板的入口: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')}
*/

 

posted on 2020-04-02 17:10  战狂粗人张  阅读(197)  评论(0编辑  收藏  举报