Update README.md

This commit is contained in:
hogimn 2024-05-21 21:17:54 +09:00
parent 54b902ff33
commit ee29bd433c

View File

@ -51,6 +51,32 @@ java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,sen
For tutorial 6, run the server followed by the client.
You can find more usage instructions by running the following command:
```
java -jar target/rabbitmq-tutorials.jar
```
This will display the following message:
```
This app uses Spring Profiles to control its behavior.
Options are:
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=hello-world,receiver
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=hello-world,sender
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,receiver
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,sender
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=pub-sub,receiver
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=pub-sub,sender
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=routing,receiver
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=routing,sender
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=topics,receiver
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=topics,sender
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=rpc,client
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=rpc,server
```
## Configuration
When running receivers/servers it's useful to set the duration the app runs to a longer time. Do this by setting