java - Can we use multiple yaml files in a single spring boot application? -


i have 1 yaml file reads environment profiles. need yaml file create feature switch can turn on/off during deployment. , how can define feature switch in properties file.

yes, can use multiple yaml files if use spring profile. example, if start jvm following flag:

-dspring.profiles.active=deployed,cassandra

it pick following application yaml files:

application.yml, application-deployed.yml, , application-cassandra.yml


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -