Skip to content

Error message can be misleading if spring.config.import fails to resolve #36243

Closed
@philwebb

Description

@philwebb

See #35683.

Given:

spring.config.import = exmple:some-path

We'll get the error:

Caused by: java.lang.IllegalStateException: File extension is not known to any PropertySourceLoader. If the location is meant to reference a directory, it must end in '/' or File.separator

Which is somewhat misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions