/accessenv

Environment variables in Spring Boot project

Primary LanguageJava

Environment variables in Spring Boot project

Different ways to access environment variables at run time from Spring Boot project.

  1. System.getenv()
  2. placeholder from settings files(*.properties, *.yaml, *.yml)
  3. @Value annotation