统一的方法模板制定方法:
1. window-preferences,打开方法模板,这里还可以制定其他很多注释
2. 选择edit,编辑格式如下
/** * <p>功能:</p> * @author 周枫 * @date ${date} * @param * @return ${return_type} */
3. 小技巧,先写方法,写完后在方法前输入"/**"回车,及自动为该方法添加注释,日期,参数,返回值都自动添加
/** * * <p>功能:根据ID获取平台更新的MEMO</p> * @author 周枫 * @date 2013-2-19 * @param * @return String */ public String teachUpdateMemo() { String id = request.getParameter("id").toString(); request.setAttribute("memo", ITeachUpdateService.getTeachUpdateMemo(id)); return SUCCESS; }