Commit 6ec8327cf78319e5006caf7c13ce1b87624b1cda
1 parent
06c5c6c8
Mybatis-plus的IdType配置问题 #1789
Showing
3 changed files
with
3 additions
and
3 deletions
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
... | ... | @@ -158,7 +158,7 @@ mybatis-plus: |
158 | 158 | banner: false |
159 | 159 | db-config: |
160 | 160 | #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)"; |
161 | - id-type: 4 | |
161 | + id-type: ASSIGN_ID | |
162 | 162 | # 默认数据库表下划线命名 |
163 | 163 | table-underline: true |
164 | 164 | configuration: |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml
... | ... | @@ -158,7 +158,7 @@ mybatis-plus: |
158 | 158 | banner: false |
159 | 159 | db-config: |
160 | 160 | #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)"; |
161 | - id-type: 4 | |
161 | + id-type: ASSIGN_ID | |
162 | 162 | # 默认数据库表下划线命名 |
163 | 163 | table-underline: true |
164 | 164 | configuration: |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-test.yml
... | ... | @@ -158,7 +158,7 @@ mybatis-plus: |
158 | 158 | banner: false |
159 | 159 | db-config: |
160 | 160 | #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)"; |
161 | - id-type: 4 | |
161 | + id-type: ASSIGN_ID | |
162 | 162 | # 默认数据库表下划线命名 |
163 | 163 | table-underline: true |
164 | 164 | configuration: |
... | ... |