springboot整合dubbo注解方式(二)

将配置文件进行更换:

在一中是引入:

  <!--引入dubbo start依赖-->
       <!-- <dependency>
            <groupId>com.alibaba.spring.boot</groupId>
            <artifactId>dubbo-spring-boot-starter</artifactId>
            <version>2.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.101tec</groupId>
            <artifactId>zkclient</artifactId>
            <version>0.10</version>
        </dependency>-->

这两个依赖,也可以引入一个依赖照样是可以进行:

 <dependency>
            <groupId>com.alibaba.boot</groupId>
            <artifactId>dubbo-spring-boot-starter</artifactId>
            <version>0.2.0</version>
        </dependency>

 

posted @ 2019-01-30 11:41  菩提树下的丁春秋  阅读(542)  评论(0编辑  收藏  举报