| | |
| | | # 最小空闲线程数量 |
| | | minIdle: 10 |
| | | # 配置获取连接等待超时的时间 |
| | | connectionTimeout: 10000 |
| | | connectionTimeout: 30000 |
| | | # 校验超时时间 |
| | | validationTimeout: 5000 |
| | | # 空闲连接存活最大时间,默认10分钟 |
| | | idleTimeout: 60000 |
| | | idleTimeout: 600000 |
| | | # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟 |
| | | maxLifetime: 900000 |
| | | maxLifetime: 1800000 |
| | | # 连接测试query(配置检测连接是否有效) |
| | | connectionTestQuery: SELECT 1 |
| | | # 多久检查一次连接的活性 |
| | | keepaliveTime: 30000 |
| | | |
| | | --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉) |
| | | spring.data: |
| | |
| | | # Socket连接超时值,单位毫秒,缺省值不超时 |
| | | connectionTimeout: 0 |
| | | |
| | | --- # sms 短信 |
| | | --- # sms 短信 https://wind.kim/doc/start/springboot.html |
| | | sms: |
| | | enabled: false |
| | | enabled: true |
| | | # 阿里云 dysmsapi.aliyuncs.com |
| | | # 腾讯云 sms.tencentcloudapi.com |
| | | endpoint: "dysmsapi.aliyuncs.com" |
| | | accessKeyId: xxxxxxx |
| | | accessKeySecret: xxxxxx |
| | | signName: 测试 |
| | | # 腾讯专用 |
| | | sdkAppId: |
| | | alibaba: |
| | | #阿里云的accessKey |
| | | accessKeyId: xxxxxxx |
| | | #阿里云的accessKeySecret |
| | | accessKeySecret: xxxxxxx |
| | | #短信签名 |
| | | signature: 测试 |
| | | #请求地址 默认为dysmsapi.aliyuncs.com 如无特殊改变可以不用设置 |
| | | requestUrl: dysmsapi.aliyuncs.com |