一直想弄一个dubbo+springboot的demon,网上搜了不少教程总是不尽人意,要么就是需要xml配置,要么就是版本太低,尤其是各种版本充斥期间,作为一个初学者,感觉很乱。最近整出一个demo(属于非常基础的~~~~),记录下来:
回头看dubbo的github已经很详细了~~~~~
暂不使用注册中心,使用dubbo的url直连,有时间添加注册中心(zookeeper或者nacos)
参考官方项目:
https://github.com/alibaba/dubbo-spring-boot-starter
1,版本:
springboot :2.1.6
dubbo-spring-boot-starter:2.7.1
jdk:1.8