dedjer / lab-springboot-environment-variables

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Java 100.0%