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
Post a Comment