You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the app with the dev profile active will cause an error indicating that imported-dev.yml does not exist, when in fact it does.
***************************
APPLICATION FAILED TO START
***************************
Description:
Config data location 'classpath:/imported-dev.yml' does not exist
Action:
Check that the value 'classpath:/imported-dev.yml' at class path resource [application-dev.yml] - 3:13 is correct, or prefix it with 'optional:'
The text was updated successfully, but these errors were encountered:
@ZouHongxue The error shown above happens with this configuration when the dev profile is active. I've edited the description to include this detail. We have written new unit tests to reproduce the problem and are working on a fix.
philwebb
changed the title
Importing a profile-specific properties file from another profile-specific properties file causes an error
Config data location does not exist error can be thrown if a profile-specific properties file is directly imported
May 7, 2021
Create a trivial app from
start.spring.io
and add four properties file like these:application.yml
:application-dev.yml
imported.yml
imported-dev.yml
Running the app with the
dev
profile active will cause an error indicating thatimported-dev.yml
does not exist, when in fact it does.The text was updated successfully, but these errors were encountered: