Skip to content

YAML property injection should work when including the base spring-boot module. #821

Closed
@berlin-ab

Description

@berlin-ab

When I include these dependencies:

dependencies {
    compile("org.springframework.boot:spring-boot:1+")
    compile("org.yaml:snakeyaml:1+")
}

And I have this config file:

example:
    someValue: foobar

Then I should be able to do this:

class Foo {
    @Value("${example.someValue}")
    String someValue;
}

@Autowired
public void example(Foo foo) {
    foo.someValue # should equal 'foobar'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions