Skip to content

Regression: Load .env even when exporting to system properties #60

@paulschwarz

Description

@paulschwarz

P1 Badge Load .env even when exporting to system properties

When springdotenv.exportToSystemProperties=true, this early return skips creating the DotenvPropertyLoader, so the .env file is never loaded and nothing is actually exported into System.getProperties(). In the previous behavior, the loader was constructed before the export check, which triggered the dotenv library to populate system properties. As a result, anyone enabling export will now see missing system properties and no .env values at all in both Spring and Boot paths.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #59 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions