#---------- Spring Boot 项目 ----------# # 测试环境服务配置 server: address: 192.168.1.68 port: 8080 # 使用环境 spring: profiles: dev # 测试环境rabbitmq配置 rabbitmq: host: 192.168.1.248 port: 5672 username: guest password: guest virtual-host: / # Requested heartbeat timeout, in seconds; zero for none. requested-heartbeat: 50 cache: channel: size: 50 # 数据源 datasource: primary: # 数据源zaxxer HikariCP type: com.zaxxer.hikari.HikariDataSource driver-class-name: org.mariadb.jdbc.Driver url: jdbc:mysql://120.76.84.45:3306/cuspay?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull username: ceshi password: abc-123 # hikari连接池配置 hikari: connection-timeout: 10000 validation-timeout: 5000 idle-timeout: 600000 max-lifetime: 1200000 maximum-pool-size: 3 minimum-idle: 3 redis: # JedisCluster jedis-cluster: # Redis Cluster 主机列表 redis-cluster-host-list: - host: 192.168.1.248 port: 7000 - host: 192.168.1.248 port: 7001 - host: 192.168.1.248 port: 7002 - host: 192.168.1.249 port: 7003 - host: 192.168.1.249 port: 7004 - host: 192.168.1.249 port: 7005 # 连接超时时间(秒), 默认 2*1000 connection-timeout: 5000 # so-timeout: # 最大重试次数 max-attempts: 5 # password: pool-config: # 连接池管理的对象实例最大数, 默认 8 max-total: 8 # 连接池中最大闲置连接数, 默认 8 max-idle: 8 # 连接池中最小闲置连接数, 默认 0 min-idle: 0