17 Star 37 Fork 28

老雷 / spring-boot-starter-dubbo-example

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

spring-boot-starter-dubbo-example

spring-boot-starter-dubbo-example是spring-boot-starter-dubbo的示例项目。

example-api

示例的api项目,api项目用来定义dubbo发布出来的服务接口

example-provider

示例的服务提供者,用来定义具体的业务

example-consumer

示例的服务调用者,用来定义服务的调用

使用示例项目

克隆示例项目

git clone git@gitee.com:reger/spring-boot-starter-dubbo-example.git

编译项目

cd spring-boot-starter-dubbo-example
mvn package

在 example-provider/target/ 和 example-consumer 项目中有对应war包,在本地安装zookeeper服务

启动提供者

java -jar example-provider-1.0.1.jar --spring.dubbo.registry.address=127.0.0.1  --spring.dubbo.registry.port=2181 

启动调用者

java -jar example-consumer-1.0.1.jar --spring.dubbo.registry.address=127.0.0.1  --spring.dubbo.registry.port=2181 

控制台可以看到调用日志

Comments ( 10 )

Sign in for post a comment

About

spring-boot-starter-dubbo的示例项目 spread retract
Java
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/lei0719/spring-boot-starter-dubbo-example.git
git@gitee.com:lei0719/spring-boot-starter-dubbo-example.git
lei0719
spring-boot-starter-dubbo-example
spring-boot-starter-dubbo-example
master

Search