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 higherCP/OL.

相关推荐
笨#小孩1 天前
中间件解析漏洞与编辑器漏洞:Web安全绕过的“捷径”
web安全·中间件·编辑器
程序员良辰3 天前
【TongWeb8】使用 Crontab 定时重启和检测 TongWeb 服务
java·中间件·tomcat
IT白小白3 天前
每日问答中间件篇
中间件
番茄炒鸡蛋加糖4 天前
分布式 CAP、BASE 理论 & 中间件 CAP 取舍
分布式·中间件
Embedded-Xin5 天前
中间件学习-Iceoryx2零基础入门
学习·中间件
Embedded-Xin5 天前
中间件—zenoh零基础入门
linux·中间件·rust·机器人·自动驾驶·嵌入式
ThsPool10 天前
【ENVI二次开发学习整理 02】IDL语言基础与程序设计
学习·中间件
程序员良辰10 天前
【TongWeb7】启动接近两分钟问题排查
java·开发语言·中间件
哎呦,帅小伙哦12 天前
Nanomsg库AIO模块学习心得
中间件·nanomsg
kisloy15 天前
【爬虫入门第10讲】Scrapy 框架深度解析(一):五大组件与中间件
爬虫·scrapy·中间件