##引入宏定义$!{define.vm}##使用宏定义设置回调(保存位置与文件后缀)#save("/entity", ".java")##使用宏定义设置包后缀#setPackageSuffix("entity")##使用全局变量实现默认包导入$!{autoImport.vm}import java.io.Serializable;import io.swagger.annotations.ApiModel;##使用宏定义实现类注释信息#tableComment("实体类")@Data@Builder@AllArgsConstructor@NoArgsConstructor@ApiModel("$!{tableInfo.comment}")public class $!{tableInfo.name} implements Serializable { private static final long serialVersionUID = $!tool.serial(); #foreach($column in $tableInfo.fullColumn) #if(${column.comment})/** * ${column.comment} */#end #if(${column.comment})@ApiModelProperty(value = "${column.comment}")#end #if($column.name.equals('id'))@TableId(type = IdType.AUTO)#end private $!{tool.getClsNameByFullName($column.type)} $!{column.name}; #end}