Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5060

Spring Boot spring.config.additional-location as relative path

$
0
0

I have a Spring Boot project with this structure:

- /my-config    - production-settings.yml    - local-settings.yml- /src    - /main        - /java            - (the usual Java stuff)        - /resources            - application.yml

This is my application.yml:

my.personal.value: ${MY_PLACEHOLDER}

where I use a placeholder that is defined in local-settings.yml:

MY_PLACEHOLDER: something

Can somebody please tell me how to use the spring.config.additional-location with a relative path to the file local-settings.yml, so that the placeholder can be resolved.

Thanks.


Viewing all articles
Browse latest Browse all 5060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>