January 2018
Intermediate to advanced
414 pages
10h 29m
English
If we run our application as usual with the following command:
java -jar target/chapter2-0.0.1-SNAPSHOT.jar
When we navigate to http://localhost:8080/user/Kotlin, we should see the following:
hi Kotlin
Since the default profile is developing the variable for service.message.simple get the value for that profile that is hi.
If we like to run the application with a different profile, we can just run it like this:
java -jar target/chapter2-0.0.1-SNAPSHOT.jar --spring.profiles.active="production"
When we navigate back to http://localhost:8080/user/Kotlin, we should see the following:
welcome Kotlin
Read now
Unlock full access