August 2018
Intermediate to advanced
372 pages
9h 29m
English
Before running an application supporting different profiles, you will need to select the desired profile to use the configuration needed. A profile can be selected using the spring.profiles.active flag using the JVM parameter, as follows:
$ java -Dspring.profiles.active=dev -jar target/infra-as-code-0.0.1-SNAPSHOT.jar
Finally, you can check the application in the browser using the port associated with the profile provided. Valid values for the spring.profiles.active flag are as follows:
If you don't provide any value for the flag, then the configurations from application.properties will be used.
Read now
Unlock full access