springboot项目使用Redisson启动报错

离开了鼠标的键盘 2020-12-29 02:26:21
使用单机模式
不知道是不是com.fasterxml.jackson冲突还是怎么回事,就是启动报错,配置文件上有配置
codec: !<org.redisson.codec.JsonJacksonCodec> {}









Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "reconnectionTimeout" (class org.redisson.config.SingleServerConfig), not marked as ignorable (25 known properties: "timeout", "subscriptionsPerConnection", "keepAlive", "sslKeystorePassword", "retryInterval", "retryAttempts", "idleConnectionTimeout", "sslTruststorePassword", "sslEnableEndpointIdentification", "address", "sslTruststore", "username", "connectTimeout", "subscriptionConnectionPoolSize", "password", "sslProvider", "tcpNoDelay", "connectionMinimumIdleSize", "subscriptionConnectionMinimumIdleSize", "sslKeystore", "pingConnectionInterval", "clientName", "connectionPoolSize", "database", "dnsMonitoringInterval"])
at [Source: (StringReader); line: 15, column: 28] (through reference chain: org.redisson.config.Config["singleServerConfig"]->org.redisson.config.SingleServerConfig["reconnectionTimeout"])
...全文
2450 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
没有,jackson反射的时候没有识别到SingleServerConfig父类BaseConfig的属性,不知道是不是我jackson的jar包冲突,我网上找了很久没有看到相同的问题,后来我放弃了通过yml反射注册属性值的方式了。
Java全栈路线 2020-12-29
  • 打赏
  • 举报
回复
翻译了下是说识别不出来这个字段,你看你是没定义还是取值打错单词了 Unrecognized field "reconnectionTimeout"

67,544

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧