January 2018
Intermediate to advanced
414 pages
10h 29m
English
Since our application is now configured, we can use the command line to run multiple variants of the beans and their configuration.
For example, running the advance service:
java -jar target/chapter2-0.0.1-SNAPSHOT.jar --service.message.type="advance"
When we visit our microservice URL http://localhost:8080/user/Kotlin, we should see the numbers increase per request:
hi Kotlin (1)
Now, if we run in our production profile, without specifying the service type:
java -jar target/chapter2-0.0.1-SNAPSHOT.jar --spring.profiles.active="production"
We should get as output, the number should increase with new requests:
welcome Kotlin (1)
This customization will allow us to not only change what values our microservices ...
Read now
Unlock full access