eclipse注释模板
一、配置步骤
Eclipse中 --> Window–>Preferences–>Java–>Code Style–> Code Templates
二、模板示例
- Files 文件
/**
* @Title: ${file_name}
* @Description: ${todo}
* @author luwei
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
- Types 类
/**
* @ClassName: ${type_name}
* @Description: ${todo}
* @author luwei
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
- Fields 字段
/**
* @Fields ${field} : ${todo}
* @author luwei
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
- Constructors 构造函数
/**
* @Constructor: ${enclosing_type}
* @Description: ${enclosing_type}构造函数
* @author luwei
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
- Methods 方法
/**
* @MethodName: ${enclosing_method}
* @Description: ${todo}
* @author luwei
* ${tags} ${return_type}
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/