ReloadablePropertiesAnnotation icon indicating copy to clipboard operation
ReloadablePropertiesAnnotation copied to clipboard

Missing overriding setLocation in ReadablePropertySourcesPlaceholderConfigurer

Open vincentmonier opened this issue 10 years ago • 0 comments

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};
    }

vincentmonier avatar Jul 16 '14 12:07 vincentmonier