Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

40 lines (22 loc) · 1.14 KB

Demo that demonstrated various ways of external configuration

Build Status

Examples

Merging of Java-Properties and YAML

java -jar target/extconfig.jar --spring.profiles.active=merge

Java-Properties and YAML compared

java -jar target/extconfig.jar --spring.profiles.active=comparison-yml

respectivly

java -jar target/extconfig.jar --spring.profiles.active=comparison-prop

Multiprofile and priority

java -jar target/extconfig.jar

java -jar target/extconfig.jar --spring.profiles.active=demo1

java -jar target/extconfig.jar --spring.profiles.active=demo2

java -jar target/extconfig.jar --spring.profiles.active=demo2,demo1

java -jar target/extconfig.jar --spring.profiles.active=demo1,demo2

Validation of configuration and failure analysis

java -jar target/extconfig.jar --spring.profiles.active=invalid

Overwrite property with env variable (notice the double underscores, . not supported in zsh)

$ export EXAMPLE_THE_GREETING=test
java -jar target/extconfig.jar