From f9b9f33ba034b8676f498f8a480b5d90406c39d5 Mon Sep 17 00:00:00 2001 From: Pavel Mitrofanov Date: Thu, 8 Nov 2018 00:44:10 +0300 Subject: [PATCH] Updated Lab 5.md Fixed commands used to start the application with Maven - profile argument was passed incorrectly. --- LabInstructions/Lab 5.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LabInstructions/Lab 5.md b/LabInstructions/Lab 5.md index 540f4303..9f132142 100644 --- a/LabInstructions/Lab 5.md +++ b/LabInstructions/Lab 5.md @@ -8,11 +8,11 @@ 3. Start 5 separate copies of the lab-5-word-server, using the profiles "subject", "verb", "article", "adjective", and "noun". There are several ways to do this, depending on your preference: - If you wish to use Maven, open separate command prompts in the target directory and run these commands: - - mvn spring-boot:run -Dspring.profiles.active=subject - - mvn spring-boot:run -Dspring.profiles.active=verb - - mvn spring-boot:run -Dspring.profiles.active=article - - mvn spring-boot:run -Dspring.profiles.active=adjective - - mvn spring-boot:run -Dspring.profiles.active=noun + - mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=subject + - mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=verb + - mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=article + - mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=adjective + - mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=noun - Or if you wish to run from directly within STS, right click on the project, Run As... / Run Configurations... . From the Spring Boot tab specify a Profile of "subject", UNCHECK JMX port / live bean support, and Run. Repeat this process (or copy the run configuration) for the profiles "verb", "article", "adjective", "noun". 4. Check the Eureka server running at [http://localhost:8010](http://localhost:8010). Ignore any warnings about running a single instance; this is expected. Ensure that each of your 5 applications are eventually listed in the "Application" section, bearing in mind it may take a few moments for the registration process to be 100% complete.