设置注释模板的入口:Window->Preference->Java->Code Style->Code Template
替换:codetemplates.xml即可
<?xml version="1.0" encoding="UTF-8" standalone="no"?>/**
* @Title: ${enclosing_method} <BR>
* @Description: ${todo} <BR>
* @return: ${field_type} <BR>
*/ /**
* @Title: ${enclosing_method} <BR>
* @Description: ${todo} <BR>
* @return: ${field_type} <BR>
*/ /**
* @Title: ${enclosing_type}
* @Description: ${todo}
* @param: ${tags}
* @throws
*//**
* FileName: ${file_name}
* @Description: ${todo}
* @author: gs-joe
* @version V1.0
* Createdate: ${date} ${time}
* Copyright: Copyright(C) 2016-2017
* Company xxxCompany.
* All rights Reserved, Designed By gs-joe
* Modification History:
* Date Author Version Discription
* ---------------------------------------------------------------------------
* ${date} gs-joe 1.0 1.0
* Why & What is modified:
*//**
* @ClassName: ${type_name}
* @Description: ${todo}
* @author: gs-joe
* @date: ${date} ${time}
*//**
* @Fields ${field} : ${todo}
*/ /**
* @Title: ${enclosing_method}
* @Description: ${todo}
* @param: ${tags}
* @return: ${return_type}
* @throws
*//**
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/ /**
* ${tags}
* ${see_to_target}
*/${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
// ${todo} Auto-generated catch block
${exception_var}.printStackTrace();// ${todo} Auto-generated method stub
${body_statement}${body_statement}
// ${todo} Auto-generated constructor stubreturn ${field};${field} = ${param};
原文:http://www.cnblogs.com/gs-joe/p/7504398.html