Failed to bind NettyServer on ×××,cause: io/netty/bootstrap/ServerBootstrap

初学dubbo,在创建项目后运行时总报错java.lang.NoClassDefFoundError: io/netty/channel/nio/NioEventLoopGroup

找了半天资料,发现问题大致有

1、QoS无法启动(解决方案:https://www.cnblogs.com/LiangPF/p/11552560.html

2、绑定端口被占用(解决方案:https://blog.csdn.net/HelloWorld998/article/details/94852083

但是虽然错误信息都是Failed to bind NettyServer on ×××,cause: io/netty/bootstrap/ServerBootstrap,我的错误详细日志却显而易见是依赖未注入问题,后尝试添加netty的最新包,问题得以解决

附:阿里源Maven地址(https://maven.aliyun.com/mvn/search

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-all</artifactId>
    <version>4.1.44.Final</version>
</dependency>

 

转发:https://blog.csdn.net/qq_44868502/article/details/103947897

posted @ 2020-09-12 14:56  ppjj  阅读(617)  评论(0编辑  收藏  举报