spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

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

Open philwebb opened this issue 2 years ago • 3 comments

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.

philwebb avatar Jul 05 '23 16:07 philwebb

Is someone working on it . I would like contribute . Please let me know that what message are we expecting .

ramanpopli avatar Jul 13 '23 17:07 ramanpopli

Thanks for the offer, @ramanpopli. Unfortunately, I think this one will be quite tricky to fix and we're not yet really sure how to do it. If you’d like to work on an issue where we provide some guidance, please watch for one labelled as ideal for contribution or, if you haven’t contributed before, first-timers only.

wilkinsona avatar Jul 19 '23 08:07 wilkinsona

Thanks @wilkinsona for guiding . Ill look into some other issues .

ramanpopli avatar Jul 28 '23 12:07 ramanpopli