diff --git a/microsphere-i18n-spring-boot/src/main/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpoint.java b/microsphere-i18n-spring-boot/src/main/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpoint.java index 983aab9..a059d5e 100644 --- a/microsphere-i18n-spring-boot/src/main/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpoint.java +++ b/microsphere-i18n-spring-boot/src/main/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpoint.java @@ -25,6 +25,7 @@ import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -76,7 +77,7 @@ public void initServiceMessageSources(ServiceMessageSource serviceMessageSource) public Map> invoke() { List serviceMessageSources = this.serviceMessageSources; int size = serviceMessageSources.size(); - Map> allLocalizedResourceMessages = new HashMap<>(size); + Map> allLocalizedResourceMessages = new LinkedHashMap<>(size); for (int i = 0; i < size; i++) { ServiceMessageSource serviceMessageSource = serviceMessageSources.get(i); List subServiceMessageSources = findAllServiceMessageSources(serviceMessageSource);