0101DNS TCP fallback on UDP query timeout disabled-redission-中间件

文章目录

1.问题描述

Springcloud 项目,微服务模块使用redission,启动报错

复制代码
DNS TCP fallback on UDP query timeout disabled. Upgrade Netty to 4.1.105 or higher.

相关软件版本如下

软件 版本 描述
springboot 2.7.18
springcloud 2021.0.9
SpringcloudAlibaba 2021.0.6.1
redission 3.32.0

2.临时解决方案

修改项目根目录pom.xml

xml 复制代码
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-handler</artifactId>
                <version>4.1.108.Final</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-resolver-dns</artifactId>
                <version>4.1.108.Final</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec-dns</artifactId>
                <version>4.1.108.Final</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
  • 版本>=4.1.105

报错模块修改redisson

复制代码
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>3.27.2</version>
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
  • 版本填写自己版本

结语

❓QQ:806797785

⭐️仓库地址:https://gitee.com/gaogzhen

⭐️仓库地址:https://github.com/gaogzhen

1\][使用redis缓存报错 `DNS TCP fallback on UDP query timeout disabled. Upgrade Netty to 4.1.105 or higher`](https://github.com/getrebuild/rebuild/issues/787)\[CP/OL\].

相关推荐
~山有木兮20 小时前
LiteHub中间件之限流实现
网络·http·中间件
fo安方1 天前
运维的利器–监控–zabbix–第三步:配置zabbix–中间件–Tomcat–步骤+验证
运维·中间件·zabbix
Code季风1 天前
Gin 中间件详解与实践
学习·中间件·golang·go·gin
一只程序汪2 天前
【如何实现分布式压测中间件】
分布式·中间件
William一直在路上2 天前
主流分布式中间件及其选型
分布式·中间件
listhi52012 天前
深入浅出Node.js中间件机制
中间件·node.js
骆驼Lara12 天前
前端跨域解决方案(7):Node中间件
前端·javascript·中间件
无糖钨龙茶13 天前
理解后端开发中的中间件(以gin框架为例)
中间件·go·gin
白总Server13 天前
轻量化分布式AGI架构:基于区块链构建终端神经元节点的互联网智脑
分布式·microsoft·中间件·架构·区块链·github·agi