Make Jar, not War !
mvn clean install
java -jar boot-external-config-0.0.1.jar
value = [default]
Create a file named application.properties
with the following content :
app.value = It works !
Add the application.properties
in the same directory than the jar file
.
├── boot-external-config-0.0.1.jar
└── application.properties
Add the application.properties
in a subdirectory named config
.
├── boot-external-config-0.0.1.jar
└── config
└── application.properties
Many more options here : http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
Specify the path to file
java -jar boot-external-config-0.0.1.jar --spring.config.location=file:/path/to/file/application.properties
value = [It works !]
mvn jgitflow:release-start -B -f pom.xml
mvn jgitflow:release-finish -B -f pom.xml
mvn jgitflow:hotfix-start -B -f pom.xml -DreleaseVersion=1.0.1.1
mvn jgitflow:hotfix-finish -B -f pom.xml