下载文件:https://download.csdn.net/download/qq_44084921/89557665
datasource:
local:
# 数据库相关配置
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
jdbcUrl: jdbc:mysql://192.
username: root
password: 123456
# 空闲时间
idle-timeout: 600000
# 池中最大连接数(包括空闲和正在使用的连接)
maximum-pool-size: 50
# 是否自动提交池中返回的连接
auto-commit: true
# 连接池的名字
pool-name: MyHikariCP
# 连接池中连接的最大生命周期
max-lifetime: 1800000
# 连接超时时间。默认值为30s
connection-timeout: 60000
# 测试连接
connection-test-query: SELECT 1
mysql1:
# mysql1数据库相关配置
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
jdbcUrl: jdbc:mysql://192
username: root
password: 123456
#mysql2数据库
mysql2:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
jdbcUrl: jdbc:mysql://192
username: root
password: 123456