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

Missing overriding setLocation in ReadablePropertySourcesPlaceholderConfigurer #8

@vincentmonier

Description

@vincentmonier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions