文章目录
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
[CP/OL].