Eclipse中创建java类的时自动生成作者信息和创建时间
window-->Preferences-->Java-->Code Style-->Code Templates(右侧的)Code -->New Java files (点击Edit)如图:
在edit界面 信息:
${filecomment}
${package_declaration}
/**
* @author LJ
* @version 创建时间:${date} ${time}
* @ClassName 类名称
* @Description 类描述
*/
${typecomment}
${type_declaration}
点击Ok
这样在新建的java类就有你写的模板信息了!赶快新建看看效果吧!