diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java index 681897dfb7..25cf1304b5 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java @@ -19,7 +19,6 @@ package org.springframework.boot.context.properties.source; import java.util.function.Predicate; import org.springframework.boot.origin.OriginTrackedValue; -import org.springframework.core.env.PropertySource; /** * A source of {@link ConfigurationProperty ConfigurationProperties}. @@ -77,9 +76,11 @@ public interface ConfigurationPropertySource { } /** - * Return the underlying {@link PropertySource}. - * @return the underlying property source. + * Return the underlying source that is actually providing the properties. + * @return the underlying property source or {@code null}. */ - Object getUnderlyingSource(); + default Object getUnderlyingSource() { + return null; + } }