diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/source/DefaultPropertyMapper.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/source/DefaultPropertyMapper.java index bb60f04a9b..34111a6ab9 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/source/DefaultPropertyMapper.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/source/DefaultPropertyMapper.java @@ -89,7 +89,7 @@ class DefaultPropertyMapper implements PropertyMapper { @Override protected boolean removeEldestEntry(Map.Entry> eldest) { - return size() >= this.capacity; + return size() > this.capacity; }