Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigBundle not working with no prefix (root properties) #64

Closed
TFaga opened this issue Sep 25, 2017 · 1 comment
Closed

ConfigBundle not working with no prefix (root properties) #64

TFaga opened this issue Sep 25, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@TFaga
Copy link
Member

TFaga commented Sep 25, 2017

When using the @ConfigBundle annotation to automatically populate bean properties from the config, if using the root prefix (i.e. not suppling a prefix) it's not picking them up. For instance:

@ConfigBundle
@ApplicationScoped
public class ServiceProperties {

    private String authUrl;

    public String getAuthUrl() {
        return authUrl;
    }

    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }
}

and the config.yml file:

auth-url: http://localhost:9080/auth

The properties are not available in the bean as would be expected.

@jmezna
Copy link
Member

jmezna commented Sep 26, 2017

fixed in #66

@TFaga TFaga closed this as completed in d8ff095 Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants