参考 http://www.yayihouse.com/yayishuwu/chapter/1603

报错信息:Caused by: java.lang.NoSuchFieldError: 

netty-all是netty-*.jar包的全家桶。有了netty-all,其它几个不能有了(除了netty-tcnative-boring***)。否则相当于同时依赖了两个版本的netty包
netty-buffer
netty-codec
netty-codec-dns
netty-codec-http
netty-codec-http2
netty-codec-socks
netty-common
netty-handler
netty-handler-proxy
netty-resolver
netty-resolver-dns
netty-transport
netty-transport-native-epoll
netty-transport-native-unix-common

这种情况下,会概率性的出现调取不同版本的netty包,导致仅存在于特定版本的包中的某些函数找不到,从而报错。

posted on 2021-07-12 17:37  51core  阅读(1187)  评论(0编辑  收藏  举报