You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

spring:
# 数据库配置
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${zsw.databases.url}
username: ${zsw.databases.username}
password: ${zsw.databases.password}
# 持久层配置
mybatis-plus:
# 开启租户数据维护
tenant-enabled: true
mapper-locations: classpath*:mappers/*.xml
#实体扫描,多个package用逗号或者分号分隔
type-aliases-package: com.zsw.cloud.*.entity
global-config:
# 关闭MP3.x自带的banner
banner: false
db-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: ASSIGN_ID
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: NOT_EMPTY
#驼峰下划线转换
column-underline: true
#逻辑删除配置
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
refresh: true
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true