@@ -19,12 +19,12 @@ import java.lang.ref.Reference
1919import java.lang.ref.SoftReference
2020
2121import groovy.transform.CompileStatic
22- import org.springframework.boot.context.properties.source.ConfigurationPropertySources
2322import org.springframework.boot.env.PropertiesPropertySourceLoader
2423import org.springframework.boot.env.YamlPropertySourceLoader
2524import org.springframework.core.env.ConfigurablePropertyResolver
2625import org.springframework.core.env.MapPropertySource
2726import org.springframework.core.env.MutablePropertySources
27+ import org.springframework.core.env.PropertySourcesPropertyResolver
2828import org.springframework.core.env.StandardEnvironment
2929import org.springframework.core.env.SystemEnvironmentPropertySource
3030import org.springframework.core.io.InputStreamResource
@@ -59,17 +59,17 @@ class Metadata {
5959
6060 private Metadata () {
6161 loadFromDefault()
62- this . propertyResolver = ConfigurationPropertySources . createPropertyResolver (propertySources)
62+ this . propertyResolver = new PropertySourcesPropertyResolver (propertySources)
6363 }
6464
6565 private Metadata (Map<String , Object > properties ) {
6666 this . propertySources. addFirst(new MapPropertySource (" default" , properties))
67- this . propertyResolver = ConfigurationPropertySources . createPropertyResolver (propertySources)
67+ this . propertyResolver = new PropertySourcesPropertyResolver (propertySources)
6868 }
6969
7070 private Metadata (InputStream inputStream ) {
7171 loadFromInputStream(inputStream)
72- this . propertyResolver = ConfigurationPropertySources . createPropertyResolver (propertySources)
72+ this . propertyResolver = new PropertySourcesPropertyResolver (propertySources)
7373 }
7474
7575 /**
0 commit comments