Add -jar for java command in dubbo-demo readme file (#4517)
This commit is contained in:
parent
519df67632
commit
ddd7e43d17
|
|
@ -19,11 +19,11 @@ Since the generated artifacts are fat jars backed by spring boot maven plugin, t
|
||||||
Use '*dubbo-demo/dubbo-demo-api*' as an example, to start the provider '*dubbo-demo-api-provider*', execute the following command:
|
Use '*dubbo-demo/dubbo-demo-api*' as an example, to start the provider '*dubbo-demo-api-provider*', execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -Djava.net.preferIPv4Stack=true dubbo-demo-api-provider-${project.version}.jar
|
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:
|
To run the consumer '*dubbo-demo-api-consumer*', execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -Djava.net.preferIPv4Stack=true dubbo-demo-api-consumer-${project.version}.jar
|
java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-consumer-${project.version}.jar
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue