|
|
@ -17,23 +17,30 @@ spring: |
|
|
##数据库设置 |
|
|
##数据库设置 |
|
|
datasource: |
|
|
datasource: |
|
|
dynamic: |
|
|
dynamic: |
|
|
|
|
|
strict: false |
|
|
|
|
|
primary: master # 配置默认数据库 |
|
|
datasource: |
|
|
datasource: |
|
|
master: |
|
|
master: |
|
|
username: root |
|
|
username: root # 用户名 |
|
|
password: root |
|
|
password: root #密码 |
|
|
url: jdbc:mysql://127.0.0.1:3306/depository?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 |
|
|
url: jdbc:mysql://127.0.0.1:3306/depository?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 |
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver #驱动 |
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
|
|
|
|
|
|
|
|
hr_new: |
|
|
|
|
|
username: hr_new |
|
|
|
|
|
password: AnknKiXiXaxNrw78 |
|
|
|
|
|
url: jdbc:mysql://172.20.2.87:3306/hr_new?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 |
|
|
driver-class-name: com.mysql.cj.jdbc.Driver |
|
|
driver-class-name: com.mysql.cj.jdbc.Driver |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
initialSize: 5 |
|
|
druid: |
|
|
minIdle: 5 |
|
|
initialSize: 5 # 初始连接数 |
|
|
maxActive: 10 |
|
|
minIdle: 5 # 最小空闲数 |
|
|
maxWait: 60000 |
|
|
maxActive: 20 #最大活跃连接数 |
|
|
timeBetweenEvictionRunsMillis: 60000 |
|
|
maxWait: 60000 #获取连接的最大等待时间(毫秒) |
|
|
minEvictableIdleTimeMillis: 300000 |
|
|
timeBetweenEvictionRunsMillis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
|
|
validationQuery: SELECT 1 FROM DUAL |
|
|
minEvictableIdleTimeMillis: 300000 #配置一个连接在池中最小生存的时间,单位是毫秒 |
|
|
useGlobalDataSourceStat: true |
|
|
useGlobalDataSourceStat: true |
|
|
server: |
|
|
|
|
|
port: 9090 |
|
|
|
|
|
testWhileIdle: true |
|
|
testWhileIdle: true |
|
|
testOnReturn: false |
|
|
testOnReturn: false |
|
|
testOnBorrow: false |
|
|
testOnBorrow: false |
|
|
@ -46,12 +53,9 @@ spring: |
|
|
removeAbandoned: true |
|
|
removeAbandoned: true |
|
|
removeAbandonedTimeout: 1800 |
|
|
removeAbandonedTimeout: 1800 |
|
|
logAbandoned: true |
|
|
logAbandoned: true |
|
|
hr_new: |
|
|
|
|
|
username: hr_new |
|
|
|
|
|
password: AnknKiXiXaxNrw78 |
|
|
|
|
|
url: jdbc:mysql://172.20.2.87:3306/hr_new?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 |
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver |
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
|
|
|
|
|
|
|
|
banner: |
|
|
banner: |
|
|
location: banner.txt |
|
|
location: banner.txt |
|
|
@ -78,20 +82,12 @@ spring: |
|
|
max-active: 200 |
|
|
max-active: 200 |
|
|
timeout: 2000ms |
|
|
timeout: 2000ms |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
redisPool: |
|
|
redisPool: |
|
|
port: 6379 |
|
|
port: 6379 |
|
|
host: 127.0.0.1 |
|
|
host: 127.0.0.1 |
|
|
dbs: 5,14,15 |
|
|
dbs: 5,14,15 |
|
|
password: |
|
|
password: |
|
|
|
|
|
|
|
|
server: |
|
|
|
|
|
mybatis: |
|
|
|
|
|
type-aliases-package: com.dreamchaser.depository_manage.entity |
|
|
|
|
|
configuration: |
|
|
|
|
|
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl |
|
|
|
|
|
log-prefix: mapper. |
|
|
|
|
|
|
|
|
|
|
|
mybatis-plus: |
|
|
mybatis-plus: |
|
|
configuration: |
|
|
configuration: |
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
|
|
|