Files
cai-server/ruoyi-admin/src/main/resources/application-dev.yml
2025-06-11 15:41:28 +08:00

123 lines
4.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

xxl.job:
# 执行器开关
enabled: false
--- # 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
dynamic:
# 性能分析插件(有性能损耗 不建议生产环境使用)
p6spy: true
# 设置默认的数据源或者数据源组,默认值即为 master
primary: master
# 严格模式 匹配不到数据源则报错
strict: true
datasource:
# 主库数据源
master:
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://124.222.254.188:5306/cai-v5?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: 383200134
# 从库数据源
slave:
lazy: true
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username:
password:
hikari:
# 最大连接池数量
maxPoolSize: 20
# 最小空闲线程数量
minIdle: 10
# 配置获取连接等待超时的时间
connectionTimeout: 30000
# 校验超时时间
validationTimeout: 5000
# 空闲连接存活最大时间默认10分钟
idleTimeout: 600000
# 此属性控制池中连接的最长生命周期值0表示无限生命周期默认30分钟
maxLifetime: 1800000
# 多久检查一次连接的活性
keepaliveTime: 30000
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring:
redis:
# 地址
host: 124.222.254.188
# 端口默认为6379
port: 9379
# 数据库索引
database: 12
# 密码(如没有密码请注释掉)
password: 383200134
# 连接超时时间
timeout: 15s
# 是否开启ssl
ssl: false
rabbitmq:
addresses: 124.222.254.188 #ip地址
username: admin # 账号
password: 383200134 # 密码
port: 5672
virtual-host: /cai-dev
redisson:
# redis key前缀
keyPrefix:
# 线程池数量
threads: 4
# Netty线程池数量
nettyThreads: 8
# 单节点配置
singleServerConfig:
# 客户端名称
clientName: ${ruoyi.name}
# 最小空闲连接数
connectionMinimumIdleSize: 8
# 连接池大小
connectionPoolSize: 32
# 连接空闲超时,单位:毫秒
idleConnectionTimeout: 10000
# 命令等待超时,单位:毫秒
timeout: 3000
# 发布和订阅连接池大小
subscriptionConnectionPoolSize: 50
--- # mail 邮件发送
mail:
enabled: false
agora:
app-id: 74356fa58b3f4c0a8d0e61a7ebf7eb45
key: db072546267c4077ae4c5921905d36df
secret: df67ecc59f8645b890e2448377e4d1ba
yunxin:
app-key: 629390c317fb293f1bb87834411e0136
app-secret: e54d5a8fd162
knife4j:
enable: false
insight:
enable: true
# namespace命名用户自定义
namespace: one
# Knife4jInsight的部署地址如果是用平台的可以配置为http://console.knife4j.net,用户购买Knife4jInsight后可以私有化部署配置为用户私有化部署的地址
server: http://124.220.152.123:10086
# Knife4jInsight平台中的用户密钥信息在个人中心-> 接口密钥 获取
secret: 0rhEH2ILED2WiVReyXeWEXE5NklDARdWkerW9/IruLY=
# 当前服务名称
service-name: oneToOne
cai:
enable-api-encryption: false
open-pay-proxy: false
proxy-ip: 159.75.218.177
proxy-host: 7693
home-name: 知予
coin-name: 知钻