今天用spring boot集成netty时候,刚开始挺顺利的,但是在引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
之后,一切都变的不美好了,启动的时候会出现如下错误
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.lettuce.core.resource.DefaultEventLoopGroupProvider.createEventLoopGroup(DefaultEventLoopGroupProvider.java:141)
The following method did not exist:
io.netty.util.concurrent.DefaultEventExecutorGroup.<init>(ILjava/util/concurrent/ThreadFactory;)V
The method's class, io.netty.util.concurrent.DefaultEventExecutorGroup, is available from the following locations:
jar:file:/C:/work/maven/mymaven/repo/io/netty/netty-all/5.0.0.Alpha2/netty-all-5.0.0.Alpha2.jar!/io/netty/util/concurrent/DefaultEventExecutorGroup.class