# redis 单机配置(单机与集群只能开启一个另一个需要注释掉) spring: datasource: system-master: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: password gen: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: password # 多数据源配置 dynamic: druid: initial-size: 5 min-idle: 5 maxActive: 20 maxWait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 filters: stat,slf4j connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭 redis: # 地址 host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 database: 0 # 密码 password: # 连接超时时间 timeout: 10s # 是否开启ssl ssl: false # redisson 配置 redisson: # 线程池数量 threads: 16 # Netty线程池数量 nettyThreads: 32 # 传输模式 transportMode: "NIO" # 单节点配置 singleServerConfig: # 客户端名称 clientName: ${ruoyi.name} # 最小空闲连接数 connectionMinimumIdleSize: 32 # 连接池大小 connectionPoolSize: 64 # 连接空闲超时,单位:毫秒 idleConnectionTimeout: 10000 # 命令等待超时,单位:毫秒 timeout: 3000 # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 retryAttempts: 3 # 命令重试发送时间间隔,单位:毫秒 retryInterval: 1500 # 发布和订阅连接的最小空闲连接数 subscriptionConnectionMinimumIdleSize: 1 # 发布和订阅连接池大小 subscriptionConnectionPoolSize: 50 # 单个连接最大订阅数量 subscriptionsPerConnection: 5 # DNS监测时间间隔,单位:毫秒 dnsMonitoringInterval: 5000 # seata配置 seata: # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启 enabled: false # Seata 应用编号,默认为 ${spring.application.name} application-id: ${spring.application.name} # Seata 事务组编号,用于 TC 集群名 tx-service-group: ${spring.application.name}-group # 关闭自动代理 enable-auto-data-source-proxy: false # 服务配置项 service: # 虚拟组和分组的映射 vgroup-mapping: ruoyi-system-group: default config: type: nacos nacos: serverAddr: ${spring.cloud.nacos.server-addr} group: SEATA_GROUP namespace: registry: type: nacos nacos: application: seata-server server-addr: ${spring.cloud.nacos.server-addr} namespace: # 本地文件上传 file: domain: http://127.0.0.1:9300 path: D:/ruoyi/uploadPath prefix: /statics # FastDFS配置 fdfs: domain: http://8.129.231.12 soTimeout: 3000 connectTimeout: 2000 trackerList: 8.129.231.12:22122 # Minio配置 minio: url: http://8.129.231.12:9000 accessKey: minioadmin secretKey: minioadmin bucketName: test