Eclipse中设置在创建新类时自动生成注释
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它
${filecomment}
${package_declaration}
/**
* 类说明
* @author zhaoguoli
* @version V1.0 创建时间:${date} ${time}
*/
${typecomment}
${type_declaration}
新建类时即可出现。
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它
${filecomment}
${package_declaration}
/**
* 类说明
* @author zhaoguoli
* @version V1.0 创建时间:${date} ${time}
*/
${typecomment}
${type_declaration}
新建类时即可出现。
package test;
/**
* 类说明
* @author zhaoguoli
* @version V1.0 创建时间:2009-8-1 下午02:50:14
*/
public class Test {
/**
* 方法描述:
* @param args
*/
public static void main(String[] args) {
}
}