| | |
| | | # 主库数据源 |
| | | master: |
| | | 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 |
| | | # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 |
| | | # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true |
| | | username: root |
| | | password: root |
| | | # 从库数据源 |
| | |
| | | |
| | | redisson: |
| | | # 线程池数量 |
| | | threads: 16 |
| | | threads: 4 |
| | | # Netty线程池数量 |
| | | nettyThreads: 32 |
| | | nettyThreads: 8 |
| | | # 传输模式 |
| | | transportMode: "NIO" |
| | | # 单节点配置 |
| | |
| | | # 客户端名称 |
| | | clientName: ${ruoyi.name} |
| | | # 最小空闲连接数 |
| | | connectionMinimumIdleSize: 32 |
| | | connectionMinimumIdleSize: 8 |
| | | # 连接池大小 |
| | | connectionPoolSize: 64 |
| | | connectionPoolSize: 32 |
| | | # 连接空闲超时,单位:毫秒 |
| | | idleConnectionTimeout: 10000 |
| | | # 命令等待超时,单位:毫秒 |