Преглед изворни кода

修复springdoc freemarker模式下 表注释取值取不到

Mo пре 2 година
родитељ
комит
fc3e69aece
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      mybatis-plus-generator/src/main/resources/templates/entity.java.ftl

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

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