Inconsistent configuration ordering with profiles #18199
Labels
status: waiting-for-feedback
We need additional information before we can continue
theme: config-data
Issues related to the configuration theme
type: bug
A general bug
Milestone
I have the following application.yml file:
Based on documentation https://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.html#howto-change-configuration-depending-on-the-environment, I would expect
Later values override earlier values
I'm running the application with profile
a
,b
, andc
. However, I'm getting2
fortest3
(expected), but I'm getting1
for bothtest1
andtest2
. So the ordering is opposite whenspring.profiles
contains a single profile vs an expression.This works as expected if profiles are comma-separated, but not using profile expression.
The text was updated successfully, but these errors were encountered: