# 该文件配置会继承bootstrap.xml,只需要配置数据库等差异配置 spring: datasource: report: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://8.129.73.156:3306/data_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: suhui#2021 type: com.alibaba.druid.pool.DruidDataSource druid: initial-size: 5 #连接池初始化大小 min-idle: 5 #最小空闲连接数 max-active: 10 #最大连接数 max-wait: 60000 report: datasource: url: jdbc:mysql://8.129.73.156:3306/data_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: suhui#2021 druid: initial-size: 10 # 初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时 min-idle: 10 # 最小连接池数量 maxActive: 20 # 最大连接池数量 maxWait: 3000 # 获取连接时最大等待时间,单位毫秒。配置了maxWait之后,缺省启用公平锁,并发效率会有所下降,如果需要可以通过配置 timeBetweenEvictionRunsMillis: 60000 # 关闭空闲连接的检测时间间隔.Destroy线程会检测连接的间隔时间,如果连接空闲时间大于等于minEvictableIdleTimeMillis则关闭物理连接。 minEvictableIdleTimeMillis: 300000 # 连接的最小生存时间.连接保持空闲而不被驱逐的最小时间 testWhileIdle: true # 申请连接时检测空闲时间,根据空闲时间再检测连接是否有效.建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRun poolPreparedStatements: true # 开启PSCache maxPoolPreparedStatementPerConnectionSize: 20 #设置PSCache值 connectionErrorRetryAttempts: 3 # 连接出错后再尝试连接三次 breakAfterAcquireFailure: true # 数据库服务宕机自动重连机制 timeBetweenConnectErrorMillis: 300000 # 连接出错后重试时间间隔 gaea: subscribes: oss: #文件存储 enabled: true ##允许上传的文件后缀 file-type-while-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi|.jpeg # 用于文件上传成功后,生成文件的下载公网完整URL downloadPath: http://127.0.0.1:9095/file/download nfs: path: D:\\test\\