Using this plug-in, you can add the get set method to the java entity and generate comments at the same time;
The code is open source, you can take a look if you are interested.
Source address: https://github.com/bill2candy/GGSDoc
Plugin download address: https://github.com/bill2candy/GGSDoc/blob/master/GeneratorGSDoc.jar
Note: Comments must be in strict java doc format, otherwise an error may be reported
Before use, as shown below,
/**
* 活动ID
*/
private Long id;
After use, just one key operation, you can,
/**
* 设置活动ID
*
* @param id 活动ID
*/
public void setId(Long id) {
this.id = id;
}
/**
* 获取活动ID
*
* @return 活动ID id
*/
public Long getId() {
return id;
}
{{o.name}}
{{m.name}}