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\].

相关推荐
Whoisshutiao11 小时前
网安-中间件-Redis未授权访问漏洞
中间件
半新半旧2 天前
FastAPI中间件
中间件·fastapi
努力找工作的OMArmy4 天前
分布式数据库中间件ShardingSphere
数据库·分布式·中间件
枷锁—sha7 天前
中间件安全攻防全解:从Tomcat到Weblogic反序列化漏洞介绍
安全·web安全·网络安全·中间件·tomcat
纪莫7 天前
Kafka为什么吞吐量大,速度快?
分布式·中间件·kafka·队列
囚~徒~10 天前
自定义 django 中间件
python·中间件·django
hxdcxy10 天前
redis中间件
数据库·redis·中间件
古怪今人10 天前
NodeJS Express 静态文件、中间件、路由案例
中间件·express
虾条_花吹雪13 天前
Using Spring for Apache Pulsar:Message Production
java·ai·中间件