Skip to content

How to use environment variables in your Spring Boot project to hide secrets

License

Notifications You must be signed in to change notification settings

dedjer/lab-springboot-environment-variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

Simple overview of use/purpose.

Description

This describe multiple ways to use environment variables in your spring boot project. It's a great way to use secrets in your application without storing the secrets in source control.

Getting Started

Dependencies

  • Requires an environment variable be created to test

Installing

Setup IntelliJ with the environment variable "MYENVVAR"

  • Open "Edit Configurations" dialog > Expand "Environement" > Add new environment variable "MYENVVAR"

Executing program

  • Run program to see environment variables outputed to console window

Help

If no environment variables are displaying or the default is displaying remember to setup the environment variables in your IDE.

Authors

@dedjer

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details

Acknowledgments

Inspiration, code snippets, etc.

About

How to use environment variables in your Spring Boot project to hide secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages