From ee29bd433cb2683835d8047976bb2efa3c613568 Mon Sep 17 00:00:00 2001 From: hogimn Date: Tue, 21 May 2024 21:17:54 +0900 Subject: [PATCH] Update README.md --- spring-amqp/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/spring-amqp/README.md b/spring-amqp/README.md index 2a9708d..0e48400 100644 --- a/spring-amqp/README.md +++ b/spring-amqp/README.md @@ -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