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

相关推荐
Geoking.18 小时前
什么是中间件?有哪些中间件?
中间件
闲人编程20 小时前
CORS跨域配置与安全策略
中间件·origin·跨域·cors·codecapsule·分离配置·最小权限
你真的可爱呀2 天前
2.Express 核心语法与路由
中间件·node.js·express
feathered-feathered2 天前
Redis【事务】(面试相关)与MySQL相比较,重点在Redis事务
android·java·redis·后端·mysql·中间件·面试
音符犹如代码2 天前
深入解析 Apollo:微服务时代的配置管理利器
java·分布式·后端·微服务·中间件·架构
IMPYLH2 天前
Lua 的 Coroutine(协程)模块
开发语言·笔记·后端·中间件·游戏引擎·lua
脸大是真的好~3 天前
黑马消息队列-rabbitMQ2-生产者重连机制-生产者确认机制-数据持久化-LazyQueue-消费者确认机制-失败重试机制-重试耗尽告警手动处理-
java·缓存·中间件
闲人编程4 天前
中间件开发与生命周期管理
缓存·中间件·生命周期·日志·扩展·codecapsule
添加shujuqudong1如果未回复4 天前
用蜣螂优化(DBO)算法攻克置换流水车间调度问题
中间件
en-route4 天前
深入理解 Redisson 分布式锁
redis·redission