Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 414 Bytes

File metadata and controls

19 lines (15 loc) · 414 Bytes

spring-environment-variables

example project of spring + maven to read environment variables

requirements

  • maven
  • java 8

usage

mvn package
# on Windows
SET myproperty=ANYVALUE
# on Linux
export myproperty=ANYVALUE 
java -jar target/spring-environment-variables-1.0-SNAPSHOT-jar-with-dependencies.jar

You should see the value of the variable "myproperty" being displayed in the console