在eclipse的window菜單->preferences,
在Preferences左邊選擇java->"Code Style" ->"Code Templates".
此時(shí)在Preferences右邊可以選擇"Comments",來制定自己的文件注釋,類注釋,方法注釋.
這在創(chuàng)建一個(gè)類時(shí),選中"Generate comments"checkbox框。即可在新建的類中加入你自定義的注釋。

如我把自己的文件注釋設(shè)成:
/*
* 類名 ${file_name}
* 說明 description of the class
* 創(chuàng)建日期 ${date}
* 作者 jiangjf
* 版權(quán) ***
* 更新時(shí)間 $$Date$$
* 標(biāo)簽 $$Name$$
* CVS版本 $$Revision$$
* 最后更新者 $$Author$$
*/
類注釋:選擇"Comments"->"Types"
/**
*
* ${tags}
* 功能說明 : 請補(bǔ)充
*/