소스 검색

fix: 修复在选择springdoc文档注释时entity描述异常问题

ok1996 2 년 전
부모
커밋
aa71eb5946
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>