-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20200503:1.优化对特殊字符的处理,对于包含#和$等特殊字符的,在模板使用井和¥代替便可,escapeString方法会自动处理<…
…br> 2.优化mybatisplus实体类相关(感谢@chunchengmeigui的反馈) 3.修优化对所有类型的判断(感谢@cnlw的反馈) 4.移除swagger-entity,该功能已经包含在‘swagger-ui’的下拉选项中 5.升级hutool和lombok版本
- Loading branch information
1 parent
0dea9b5
commit 7774819
Showing
13 changed files
with
121 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project. | ||
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information. | ||
--> | ||
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd"> | ||
|
||
<classpath> | ||
<dir name="E:/workspace/idea with spring/SpringBootCodeGenerator/generator-web/target/classes"> | ||
</dir> | ||
</classpath> | ||
|
||
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
generator-web/src/main/resources/templates/code-generator/beetlsql/beetlentitydto.ftl
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
generator-web/src/main/resources/templates/code-generator/mybatis-plus/plusentity.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package ${packageName}.entity; | ||
|
||
import lombok.Data; | ||
import java.util.Date; | ||
import java.util.List; | ||
import java.io.Serializable; | ||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
|
||
/** | ||
* @description ${classInfo.classComment} | ||
* @author ${authorName} | ||
* @date ${.now?string('yyyy-MM-dd HH:mm:ss')} | ||
*/ | ||
@Data | ||
<#if swagger?exists && swagger==true>@ApiModel("${classInfo.classComment}")</#if> | ||
public class ${classInfo.className} implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@TableId(type = IdType.AUTO) | ||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0> | ||
<#list classInfo.fieldList as fieldItem > | ||
/** | ||
* ${fieldItem.fieldComment} | ||
*/<#if swagger?exists && swagger==true> | ||
@ApiModelProperty("${fieldItem.fieldComment}")</#if> | ||
private ${fieldItem.fieldClass} ${fieldItem.fieldName}; | ||
|
||
</#list> | ||
public ${classInfo.className}() { | ||
} | ||
</#if> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.