mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-13 22:09:00 +08:00
⬆️ Upgrading ORM Framework from Mybatis Plus 2.x to Mybatis Plus 3.x
This commit is contained in:
1 parent
abab6b1859
commit
ff47da2767
128 files changed
+1579
-749
No files matched your search
@@ -53,26 +53,29 @@ ribbon:
|
||||
ReadTimeout: 10000
|
||||
ConnectTimeout: 10000
|
||||
|
||||
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
|
||||
# mybaits-plus配置
|
||||
mybatis-plus:
|
||||
# MyBatis Mapper所对应的XML文件位置
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
global-config:
|
||||
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
||||
id-type: 0
|
||||
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
|
||||
field-strategy: 1
|
||||
#驼峰下划线转换
|
||||
db-column-underline: true
|
||||
#刷新mapper 调试神器
|
||||
refresh-mapper: false
|
||||
# 逻辑删除字段
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
#自定义SQL注入器
|
||||
sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
|
||||
# 自动刷新Mapper对应的XML文件
|
||||
refresh: true
|
||||
# 关闭MP3.0自带的banner
|
||||
banner: false
|
||||
db-config:
|
||||
# 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
|
||||
id-type: 0
|
||||
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
|
||||
field-strategy: 1
|
||||
# 默认数据库表下划线命名
|
||||
table-underline: true
|
||||
# 逻辑删除配置
|
||||
# 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
|
||||
logic-delete-value: 1
|
||||
# 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
|
||||
logic-not-delete-value: 0
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
cache-enabled: true
|
||||
|
||||
#swagger公共信息
|
||||
swagger:
|
||||
|
||||
Reference in new issue
Block a user