Mybatis-plus的IdType配置问题 #1789

pull/4246/head
zhangdaiscott 2020-09-23 18:02:16 +08:00
parent 0795808075
commit 55c0a4e051
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ mybatis-plus:
banner: false
db-config:
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
id-type: 4
id-type: ASSIGN_ID
# 默认数据库表下划线命名
table-underline: true
configuration:

View File

@ -158,7 +158,7 @@ mybatis-plus:
banner: false
db-config:
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
id-type: 4
id-type: ASSIGN_ID
# 默认数据库表下划线命名
table-underline: true
configuration:

View File

@ -158,7 +158,7 @@ mybatis-plus:
banner: false
db-config:
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
id-type: 4
id-type: ASSIGN_ID
# 默认数据库表下划线命名
table-underline: true
configuration: