在jdk17 下运行报错
nest exception is java.lang.NoClassDefFoundError: Could not initialize class io.netty.util.internal.PlatformDependent0
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.netty.util.internal.PlatformDependent0 at io.netty.util.internal.PlatformDependent.getSystemClassLoader(PlatformDependent.java:694)
原因 :netty 低版本使用了 sun.misc.*
解决:
升级 netty-all 包
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.82.Final</version>
</denpendency>