asycode使用模板生成实体类,宏定义文件名,包路径,表头注释不生效

easycode使用模板生成实体类,宏定义文件名,包路径,表头注释不生效

img

下面是配置代码

$!init
##引入宏定义
$!define

##使用宏定义设置回调(保存位置与文件后缀)
#save("/entity", ".java")

##使用宏定义设置包后缀
#setPackageSuffix("entity")


##使用全局变量实现默认包导入
$!autoImport
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


/**
 * $!{tableInfo.comment}($!{tableInfo.name})实体类
 *
 * @author $!author
 * @since $!time.currTime()
 */
##使用宏定义实现类注释信息
@Data
@TableName("$tool.hump2Underline($tableInfo.name)")
public class $!{tableInfo.name}  {
    
#foreach($column in $tableInfo.fullColumn)

    #if(${column.comment})
   /**
    * ${column.comment}
    */
    #end
    
    @TableField("$tool.hump2Underline(${column.name})")
    private $!{tool.getClsNameByFullName($column.type)} $!{column.name};
#end


}