Skip to content

coruja182/spring-environment-variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages