You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Redisson 3.16.2启动报Unrecognized field "reconnectionTimeout"如何解决

问题原因

Redisson 从3.12.0版本开始正式移除了SingleServerConfig下的reconnectionTimeout和failedAttempts两个配置项,因此你升级到3.16.2版本后反序列化配置时会抛出无法识别属性的异常。

解决方案

  • 删除配置中的reconnectionTimeout配置项:该配置的能力已经被retryInterval替代,如果你之前用reconnectionTimeout设置重连间隔,直接调整retryInterval的数值即可,你当前配置的retryInterval为1500,可根据业务需要调整。
  • 删除配置中的failedAttempts配置项:单节点模式下该配置已经废弃,对应的节点可用性检测逻辑由Redisson内部统一处理,无需额外配置。

修改后的完整配置

singleServerConfig:
  idleConnectionTimeout: 10000
  pingConnectionInterval: 1000
  connectTimeout: 10000
  timeout: 3000
  retryAttempts: 3
  retryInterval: 1500
  password: null
  subscriptionsPerConnection: 5
  clientName: null
  address: "redis://127.0.0.1:6379"
  subscriptionConnectionMinimumIdleSize: 1
  subscriptionConnectionPoolSize: 50
  connectionMinimumIdleSize: 10
  connectionPoolSize: 64
  database: 0

内容的提问来源于stack exchange,提问作者İlkay Gunel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.04 12:27:03