Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Missing overriding setLocation in ReadablePropertySourcesPlaceholderConfigurer #8

Open
vincentmonier opened this issue Jul 16, 2014 · 0 comments

Comments

@vincentmonier
Copy link

in ReadablePropertySourcesPlaceholderConfigurer only setLocations method is overrided, simply add the following to have setLocation working aswell, if not you, will get a NullPointerException when starting PropertiesWatcher task.

    @Override
    public void setLocation(Resource location) {
        super.setLocation(location);
        this.locations = new Resource[] {location};
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant