最近用 Dubbo 在 Spring Boot 下做了些尝试, 总体支持并不算完美, 还有很大的提升空间, 其中版本兼容性就是问题之一.
参考资料:
- http://dubbo.apache.org/zh-cn/docs/user/quick-start.html
- https://github.com/JeffLi1993/dubbo-spring-boot-best-practice
上述是官方说明文档和一个实践案例,
在编译时遇到一个版本问题, 最终选择下图中的版本,
- java.lang.ClassNotFoundException: io.netty.channel.EventLoopGroup
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo</artifactId>
- <version>2.7.1</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <version>4.3.13.RELEASE</version>
- </dependency>
来源: http://www.bubuko.com/infodetail-3090006.html