dubbo/dubbo-demo
dependabot[bot] 34c976e021
Bump ch.qos.logback:logback-core from 1.5.7 to 1.5.8 (#14653)
Bumps [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) from 1.5.7 to 1.5.8.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.7...v_1.5.8)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 16:42:41 +08:00
..
dubbo-demo-annotation Update the comment content in pom.xml to be consistent (#14039) 2024-04-08 16:34:36 +08:00
dubbo-demo-api Update the comment content in pom.xml to be consistent (#14039) 2024-04-08 16:34:36 +08:00
dubbo-demo-generic-call Update the comment content in pom.xml to be consistent (#14039) 2024-04-08 16:34:36 +08:00
dubbo-demo-interface Fix incorrect rest response header and demo double path error (#13789) 2024-02-28 10:44:29 +08:00
dubbo-demo-native Bump ch.qos.logback:logback-core from 1.5.7 to 1.5.8 (#14653) 2024-09-11 16:42:41 +08:00
dubbo-demo-spring-boot Bump io.micrometer:micrometer-core from 1.13.2 to 1.13.3 (#14584) 2024-08-27 11:32:57 +08:00
dubbo-demo-triple Update the comment content in pom.xml to be consistent (#14039) 2024-04-08 16:34:36 +08:00
dubbo-demo-xml Bump org.springframework.boot:spring-boot-maven-plugin (#13419) 2023-11-29 21:19:20 +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 [3.2]Use spotless to format the code (#13320) 2023-11-07 15:40:13 +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