前言
熟悉dubbo的朋友都知道,dubbo可通过指定Url方式绕过注册中心直连指定的服务地址,所以想当然会想到那么可不可以不使用注册中心。本文就是SpringBoot整合Dubbo(无注册中心)的示例展示。
提供者dubbo-provider
目录结构
配置pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusion