浏览代码

修复Beetl模板引擎无法生成注释

https://github.com/baomidou/mybatis-plus/issues/5054
lanjerry 1 年之前
父节点
当前提交
9847055990
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mybatis-plus-generator/src/main/resources/templates/entity.java.btl

+ 1 - 1
mybatis-plus-generator/src/main/resources/templates/entity.java.btl

@@ -36,7 +36,7 @@ import lombok.experimental.Accessors;
 @TableName("${schemaName}${table.name}")
 <% } %>
 <% if(springdoc){ %>
-@Schema(name = "${entity}", description = "$!{table.comment}")
+@Schema(name = "${entity}", description = "${table.comment!''}")
 <% }else if(swagger){ %>
 @ApiModel(value = "${entity}对象", description = "${table.comment!''}")
 <% } %>