| | |
| | | min-idle: 1 # 最小连接池数量 |
| | | max-active: 20 # 最大连接池数量 |
| | | max-wait: 60000 # 配置获取连接等待超时的时间,单位:毫秒(1 分钟) |
| | | time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(1 分钟) |
| | | time-between-eviction-runs-millis: 30000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(30 秒,压缩空闲连接未被检测的缝隙) |
| | | min-evictable-idle-time-millis: 600000 # 配置一个连接在池中最小生存的时间,单位:毫秒(10 分钟) |
| | | max-evictable-idle-time-millis: 1800000 # 配置一个连接在池中最大生存的时间,单位:毫秒(30 分钟) |
| | | validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 |
| | | test-while-idle: true |
| | | keepAlive: true # 空闲连接定期发送检测包保活,避免被服务端 wait_timeout 回收 |
| | | test-on-borrow: false |
| | | test-on-return: false |
| | | pool-prepared-statements: true # 是否开启 PreparedStatement 缓存 |
| | |
| | | primary: master |
| | | datasource: |
| | | master: |
| | | url: jdbc:mysql://172.17.0.1:9000/mom-thzy?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 |
| | | url: jdbc:mysql://172.17.0.2:3306/mom-thzynew?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 |
| | | username: root |
| | | password: thzy@123456.. |
| | | |
| | | # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 |
| | | data: |
| | | redis: |
| | | host: 172.17.0.1 # 地址 |
| | | port: 10200 # 端口 |
| | | database: 1 # 数据库索引 |
| | | host: 172.17.0.6 # 地址 |
| | | port: 6379 # 端口 |
| | | database: 3 # 数据库索引 |
| | | # password: dev # 密码,建议生产环境开启 |
| | | |
| | | --- #################### 定时任务相关配置 #################### |
| | |
| | | storage: # 文件上传配置 |
| | | path: /home/mom/javaWork/file # 文件存储根目录 |
| | | url-prefix: /admin-api/system/storage-blob # URL路径前缀 |
| | | domain: http://47.97.181.254:9001 # 域名前缀(按实际域名配置),前端配置好像不太对现在是直连后端,所有要后端端口 |
| | | domain: http://47.97.181.254:9008 # 域名前缀(按实际域名配置),前端配置好像不太对现在是直连后端,所有要后端端口 |
| | | expired: 120 # token过期时间(分钟) |
| | | use-limit: 10 # token使用次数上限 |
| | | jwt-secret: abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG # JWT密钥 |