spring-dotenv: Using .env Files With Spring Applications

Home » Blog » Software » Enterprise Software » spring-dotenv: Using .env Files With Spring Applications

Leider ist der Eintrag nur auf English verfügbar.

spring-dotenv, which in turn is based on dotenv-java is a library that enables Spring applications to access and use environment variables from .env files.

.env files are a convention that enables us to store environment variables locally per directory / project instead of either doing so system-wide or in an ad-hoc manner (e.g., using the export shell command), thus allowing use to more strictly follow the storing config in the environment principle from The Twelve-Factor App in Spring (Boot) applications.

About the author: Bjoern
Independent IT consultant, entrepreneur

Leave a Comment

Falls du auf diesen Beitrag mit einem Artikel auf deiner eigenen Webseite geantwortet hast, kannst du hier die URL deines Beitrags eingeben. Dabei sollte es sich um die Permalink-URL handeln. Deine Antwort wird dann (möglicherweise nach der Moderation) auf dieser Seite angezeigt. Falls du deine Antwort aktualisieren oder entfernen möchtest, aktualisiere oder lösche deinen Beitrag auf deiner eigenen Webseite und gib die URL des Beitrags erneut ein. (Erfahre mehr über Webmentions.)