Skip to content

Environment variable not bound #4045

@jgoelen

Description

@jgoelen

Since Spring Boot v1.2.6.RELEASE the binding of environment variables behaves differently.
The properties of a class with an @ConfigurationProperties annotation are not set when combining a YAML file and OS environment variables. The following github repo contains a unit test to reproduce the problem:

https://github.com/jgoelen/spring-boot-env-bug

The test works fine with version 1.2.5.RELEASE (repo tag v1.2.5.RELEASE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions