eclipse中设定文档注释

在类声明处按Alt+Shift+J,即可出来类的注释内容;

方法括号内按Alt+Shift+J,即可出来方法注释内容;

这些在eclipse中的设定:

Window-->Preferences-->搜索code templates:

Comments下的Types-->类的声明注释;

                       Methods是方法的注释:

方法的常用参数:

@param 参数;

@return ${return_type} 返回值,return_type:会在注释时自动生声明的返回类型;

@throws 抛出异常后会自动加上;

@${date}${time} 生成注释时会自动加上日期和时间;

原文地址:https://www.cnblogs.com/jianming-chan/p/3344635.html