dubbo/dubbo-demo
dependabot[bot] e6c55d5ca6
Bump spring-boot.version from 2.3.1.RELEASE to 2.7.8 (#11371)
Bumps `spring-boot.version` from 2.3.1.RELEASE to 2.7.8.

Updates `spring-boot-starter` from 2.3.1.RELEASE to 2.7.8
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.3.1.RELEASE...v2.7.8)

Updates `spring-boot-autoconfigure` from 2.3.1.RELEASE to 2.7.8
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.3.1.RELEASE...v2.7.8)

Updates `spring-boot-starter-logging` from 2.3.1.RELEASE to 2.7.8
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.3.1.RELEASE...v2.7.8)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.springframework.boot:spring-boot-autoconfigure
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.springframework.boot:spring-boot-starter-logging
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-28 11:23:35 +08:00
..
dubbo-demo-annotation Bump spring-boot-maven-plugin from 2.1.4.RELEASE to 2.7.7 (#11329) 2023-01-19 21:03:52 +08:00
dubbo-demo-api Bump spring-boot-maven-plugin from 2.1.4.RELEASE to 2.7.7 (#11329) 2023-01-19 21:03:52 +08:00
dubbo-demo-generic-call Fastjson2 Support (#10166) 2022-07-15 10:18:41 +08:00
dubbo-demo-interface optimize: example add Triple protocol Demo (#8643) 2021-09-01 17:20:27 +08:00
dubbo-demo-native Support native ci check (#11358) 2023-01-20 14:03:41 +08:00
dubbo-demo-spring-boot Bump spring-boot.version from 2.3.1.RELEASE to 2.7.8 (#11371) 2023-01-28 11:23:35 +08:00
dubbo-demo-triple Bump protobuf-java from 3.19.6 to 3.21.12 (#11356) 2023-01-19 22:48:56 +08:00
dubbo-demo-xml Bump spring-boot-maven-plugin from 2.1.4.RELEASE to 2.7.7 (#11329) 2023-01-19 21:03:52 +08:00
README.md Add -jar for java command in dubbo-demo readme file (#4517) 2019-07-10 13:27:11 +08:00
pom.xml Add dubbo spring boot demo (#9244) 2021-11-13 14:47:09 +08:00

README.md

Dubbo Demo

This directory contains basic usages of Dubbo to help Dubbo developers for debugging and smoke test purpose. If you are looking for Dubbo samples for study purpose, you should look into here where you will find comprehensive usages for how to use Dubbo in different scenarios with the different features.

How To Build

To build all demo applications from the source code, simply step into 'dubbo-demo' directory and use maven to build:

mvn clean package

After build completes, a couple of fat jars are generated under 'target' directory under each module directories, for example: 'dubbo-demo-api-provider-${project.version}.jar' can be found under the directory 'dubbo-demo/dubbo-demo-api/dubbo-demo-api-provider/target'.

How To Run

Since the generated artifacts are fat jars backed by spring boot maven plugin, they can be executed directly with 'java -jar', and since multicast is used for service registration, a necessary system property '-Djava.net.preferIPv4Stack=true' is required in order to registry and discover the demo service properly.

Use 'dubbo-demo/dubbo-demo-api' as an example, to start the provider 'dubbo-demo-api-provider', execute the following command:

java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-provider-${project.version}.jar

To run the consumer 'dubbo-demo-api-consumer', execute the following command:

java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-consumer-${project.version}.jar