当前位置:编程学习 > JAVA >>

myeclipse/eclipse方法和类的自动注解

设置新建类注释Window->preferences->java->code style ->codeTemplates->code->new Java files
->edit修改成


${filecomment}
${package_declaration}
/**
* @className:${file_name}
* @classDescription:
* @author:yourname
* @createTime:${date} ${time}
*/
${typecomment} www.zzzyk.com
${type_declaration}

 

 

结果:
[java]
package com.tudou.junit; 
/** 
 * @className:AnonationTest.java 
 * @classDescription: 
 * @author:lizhuang
 * @createTime:2012-6-29 下午03:47:30
 */ 
public class AnonationTest { 
 

作者:yaerfeng
 
补充:软件开发 , Java ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,