<!--dubbo-->
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<version>0.5</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
base-packages是调用远程服务的类所在的包
dubbo:
scan:
base-packages: com.kexin.schedule
application:
name: learn
consumer:
timeout: 300000
check: false
retries: 3
registry:
protocol: zookeeper
# address: zookeeper://192.168.1.13:2181?backup=192.168.1.12:2181,192.168.1.14:2181
address: zookeeper://192.168.1.13:2181
reference:
id: lessonService
check: false
interface: com.kexin.core.TestService
timeout: 100000