dubbo实战之一:准备和初体验( 二 )

springbootmulticastconsumerUTF-81.81.81.82.7.62.3.3.RELEASE4.0.0com.bolingcavalrydubbopractice1.0-SNAPSHOTpomorg.apache.dubbodubbo-dependencies-bom${dubbo.version}pomimportio.nettynetty-all4.1.25.Finalorg.apache.dubbodubbo${dubbo.version}org.apache.dubbodubbo-dependencies-zookeeper${dubbo.version}pomorg.apache.dubbodubbo-spring-boot-starter${dubbo.version}org.apache.dubbodubbo-registry-multicast${dubbo.version}org.apache.zookeeperzookeeper3.4.7com.github.sgroschupfzkclient0.1org.projectlomboklombok1.16.16com.fasterxml.jackson.corejackson-databind2.11.0compilecom.fasterxml.jackson.datatypejackson-datatype-jdk82.11.0compileorg.slf4jslf4j-log4j121.7.25compilecommons-iocommons-io2.7compileorg.apache.commonscommons-lang33.10compileio.springfoxspringfox-swagger22.5.0io.springfoxspringfox-swagger-ui2.5.0《dubbo实战》系列的二方库

  1. 涉及到多个工程之间的服务调用 , 因此要有个工程保存公用的数据结构、接口定义等 , 因此新建名为practiceinterface的子工程;
  2. practiceinterface工程的pom.xml内容如下 , 非常简单:
dubbopracticecom.bolingcavalry1.0-SNAPSHOT../pom.xml4.0.0com.bolingcavalrypracticeinterface1.0-SNAPSHOTpracticeinterfaceBeans of all app
  1. 此工程目前只有一个接口定义 , 后面多个子工程都会用到:
package com.bolingcavalry.dubbopractice.service;public interface DemoService {String sayHello(String name);}