1.在eclipse中点击Window——>java——>Code Style——>CodeTemplates——>Comments

2.常用Variable
3. 我的注释模板
①Files 文件
/**  * @Title: ${file_name}* @Description: ${todo}* @author Jeremy* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} */ 
②Types 类
/**  * @ClassName: ${type_name}* @Description: ${todo}* @author Jeremy* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} 
*/  ③Fields 字段
/**  * @Fields ${field} : ${todo}* @author Jeremy* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} */  ④Constructors 构造函数
/**  * @Constructor: ${enclosing_type}* @Description: ${enclosing_type}构造函数* @author Jeremy* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} */ 
⑤Methods 方法
/**  * @MethodName: ${enclosing_method}* @Description: ${todo}* @author Jeremy* ${tags} ${return_type}* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} */  
⑥Overriding methods 重写方法
/**  * @MethodName: ${enclosing_method}* @Description: ${todo}* @author Jeremy* ${tags}* ${see_to_overridden}* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')} */  4.如何使用注释
选中类、方法名 用快捷键Alt+Shift+J 快速添加注释
