浏览代码

velocity指令缩进会在代码生成时产生多余空格!所以不要缩进!

bj_renyong 6 年之前
父节点
当前提交
b1559aa082
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mybatis-plus-generator/src/main/resources/templates/entity.java.vm

+ 3 - 3
mybatis-plus-generator/src/main/resources/templates/entity.java.vm

@@ -52,13 +52,13 @@ public class ${entity} implements Serializable {
 #set($keyPropertyName=${field.propertyName})
 #end
 #if("$!field.comment" != "")
-    #if(${swagger2})
+#if(${swagger2})
     @ApiModelProperty(value = "${field.comment}")
-    #else
+#else
     /**
      * ${field.comment}
      */
-     #end
+#end
 #end
 #if(${field.keyFlag})
 ## 主键