diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config/ChannelBindingProperties.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config/ChannelBindingProperties.java index 673721e9a..273792b6d 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config/ChannelBindingProperties.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config/ChannelBindingProperties.java @@ -16,11 +16,10 @@ package org.springframework.cloud.stream.config; -import java.util.HashMap; import java.util.Map; import java.util.Properties; +import java.util.TreeMap; -import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import com.fasterxml.jackson.annotation.JsonInclude; @@ -40,7 +39,7 @@ public class ChannelBindingProperties { private Properties producerProperties = new Properties(); - private Map bindings = new HashMap<>(); + private Map bindings = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); public Properties getConsumerProperties() { return this.consumerProperties;