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
We have usecase where we want to use different configurations for some servers, but all of them are 'test' instances ( we have 3 eureka servers and all of them should register to each other). So we are using application-test.yml file with "Multi-profile YAML documents"
---
spring:
profiles: profile1specificProperty: one
---
spring:
profiles: profile2specificProperty: two
Having this in place I was sure it will be possible to load run app on specific server with -Dspring.profiles.active=test,profile1 and on other one with -Dspring.profiles.active=test,profile2 and correct 'specificProperty' will be used. This is not a case - seems that "Multi-profile YAML documents" works only when put in the main application.yml file.
The text was updated successfully, but these errors were encountered:
@philwebb I don't see this issue tagged to a milestone, but it looks like the commit was against master. Should this fix/enhancement also be included in 1.2.7?
We have usecase where we want to use different configurations for some servers, but all of them are 'test' instances ( we have 3 eureka servers and all of them should register to each other). So we are using application-test.yml file with "Multi-profile YAML documents"
Having this in place I was sure it will be possible to load run app on specific server with
-Dspring.profiles.active=test,profile1
and on other one with-Dspring.profiles.active=test,profile2
and correct 'specificProperty' will be used. This is not a case - seems that "Multi-profile YAML documents" works only when put in the mainapplication.yml
file.The text was updated successfully, but these errors were encountered: