Skip to content

Support for ant wildcards in configuration properties #12993

Closed
@filiphr

Description

@filiphr

I have the following configuration properties

@ConfigurationProperties(prefix = "dummy")
public DummyProperties {

    private Resource[] dummyFiles;

    // getters and setters
}

And then in my application.properties

dummy.dummy-files=classpath*:/com/example/dummy/*.json

When this is done then DummyProperties#dummyFiles contains a single ServletContextResource.
If you change the property to classpath*:/com/example/dummy/single.json then it works correctly.

I asked in the gitter channel and @snicoll said that you don't support this. However, I didn't understand if this is on purpose or it's just not implemented. If it is the first sorry for opening this issue and feel free to close it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions