Directory for Spring boot additional location parameter

149 views Asked by At

I am trying override few of the properties in my spring boot application. The properties are spread across mutiple yml files within the same directory and hence i would like to specify spring.config.additional-location parameter with the value of directory..

spring.config.additional-location=file:///Mydirectory/

But the application is not able to load the configs. If I explicitly specify the file name, the properties are getting overwritten

spring.config.additional-location=file:///Mydirectory/application.yml

Is it possible to load all the files available in a directory using spring.config.additional-location? If yes, please let me know

0

There are 0 answers