1.設置方法的模板註釋
具體設置方法如下:
windows -preferences- java- code style- code Templates – Comments- Methods -Edit 填入下面代碼
/**
* @author van van.shu@magic-point.com
* @version 創建時間:${date} ${time}
* ${tags}
*/
2.同理設置 設置類的模板註釋
windows -preferences- java- code style- code Templates – Code- New Java files-Edit 填入下面代碼
${filecomment}
${package_declaration}
/**
* @author van van.shu@magic-point.com
* @version 創建時間:${date} ${time}
* 類說明
*/
${typecomment}
${type_declaration}
摘自 sxchao2008