2023-05-04 19:53:10 +08:00
|
|
|
|
qiaoba:
|
2023-04-26 19:48:44 +08:00
|
|
|
|
datasource:
|
2023-05-04 19:53:10 +08:00
|
|
|
|
master:
|
|
|
|
|
driver: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://121.5.136.69:3306/qiaoba-boot-1?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowMultiQueries=true
|
|
|
|
|
username: root
|
|
|
|
|
password: LpYN7LUoL?l0OSpR2
|
|
|
|
|
pool:
|
|
|
|
|
init: 5 #连接池初始化大小
|
|
|
|
|
min: 10 #最小空闲连接数
|
|
|
|
|
max: 20 #最大连接数
|
|
|
|
|
slaves:
|
|
|
|
|
- driver: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://121.5.136.69:3306/qiaoba-boot?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowMultiQueries=true
|
|
|
|
|
username: root
|
|
|
|
|
password: LpYN7LUoL?l0OSpR2
|
|
|
|
|
pool:
|
|
|
|
|
init: 5
|
|
|
|
|
min: 10
|
|
|
|
|
max: 20
|
|
|
|
|
weight: 2 #权重 默认 1
|
|
|
|
|
is-use: true #是否使用 默认 true
|
|
|
|
|
- driver: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/qiaoba-boot?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowMultiQueries=true
|
|
|
|
|
username: root
|
|
|
|
|
password: root
|
|
|
|
|
pool:
|
|
|
|
|
init: 5
|
|
|
|
|
min: 10
|
|
|
|
|
max: 20
|
|
|
|
|
is-use: false # 不使用该库
|
2023-04-26 19:48:44 +08:00
|
|
|
|
|
2023-04-26 23:15:33 +08:00
|
|
|
|
|
2023-05-10 17:17:26 +08:00
|
|
|
|
mybatis-plus:
|
|
|
|
|
configuration:
|
|
|
|
|
# 自动驼峰命名规则(camel case)映射
|
|
|
|
|
mapUnderscoreToCamelCase: true
|
|
|
|
|
# MyBatis 自动映射策略
|
|
|
|
|
# NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
|
|
|
|
|
autoMappingBehavior: PARTIAL
|
|
|
|
|
# MyBatis 自动映射时未知列或未知属性处理策
|
|
|
|
|
# NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
|
|
|
|
|
autoMappingUnknownColumnBehavior: NONE
|
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|