spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Activate a different profile from within a default one

Open Haybu opened this issue 4 years ago • 0 comments

Describe the bug Currently (with SB >= 2.4.x) a profile that gets activated from within a default profile section is not taking effect. A remote application gets configured still with the default profile's properties.

Properties source for the activated profile should be reloaded. However with SB 2.4.x, it's not possible to specify spring.profiles.active from within a default section, see this issue. However, that is possible now with SB 2.5.x (snapshot now).

The attached PR works only with remote client applications that use SB 2.5.x

Haybu avatar Mar 15 '21 23:03 Haybu