例如我想生成如下样式的代码,要实现可以塞入 # # 之间的变量,如下:
/**
* #StringA#
* #StringB# 2000-#YRAR# #StringC#
*/
package com.hahahaha.jjjj.zx.test;
/**
*
* @author #myName#
* @version $Id: CommentTest01.java, v 0.1 #Time(2015年4月13日 下午19:00:00)# #myName# Exp $
*/
public class CommentTest01 {
}
然后自动生成getter方法和setter方法的时候生成下面样式的代码:
private String name; /** * Getter method for property <tt>name</tt>. * * @return property value of name */ public String getName() { return name; } /** * Setter method for property <tt>name</tt>. * * @param name value to be assigned to property name */ public void setName(String name) { this.name = name; } 请问要怎么做呢,谢谢~
![]() | 1 flamhaze5946 OP 顶起来看看~~ |