public final class PropertySourceUtils
extends java.lang.Object
PropertySource
.Modifier and Type | Method and Description |
---|---|
static org.springframework.core.env.PropertySource<?> |
loadYamlPropertySource(java.lang.String propertySourceName,
org.springframework.core.io.Resource resource)
Load a YAML
PropertySource from the given resource . |
public static org.springframework.core.env.PropertySource<?> loadYamlPropertySource(java.lang.String propertySourceName, org.springframework.core.io.Resource resource)
PropertySource
from the given resource
.propertySourceName
- The name of the this property sourceresource
- The resource. Must exist and be YAML.PropertySource
representing this set of properties