项目里如果存在这两个包的话,io.lettuce无法在项目启动时初始化连接redis。把io.netty注释掉就可以了
<dependency>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
<version>5.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.0.28.Final</version>
<scope>compile</scope>
</dependency>