public class ConfigurationParser extends Object
Warning : Not support Validated
Binder
Relaxed-Binding-2.0
| 构造器和说明 |
|---|
ConfigurationParser(org.springframework.context.ApplicationContext applicationContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
bind(T instance,
org.springframework.boot.context.properties.bind.PlaceholdersResolver placeholdersResolver,
org.springframework.boot.context.properties.source.ConfigurationPropertySource... sources) |
<T> T |
bind(T instance,
Properties properties) |
Properties |
bytes2Properties(byte[] bytes) |
<T> T |
parse(Class<T> cls,
org.springframework.boot.context.properties.bind.PlaceholdersResolver placeholdersResolver,
org.springframework.boot.context.properties.source.ConfigurationPropertySource... sources) |
<T> T |
parse(Class<T> cls,
Properties properties) |
Properties |
yamlBytes2Properties(byte[] bytes) |
Properties |
yamlResources2Properties(org.springframework.core.io.Resource... resources) |
public ConfigurationParser(org.springframework.context.ApplicationContext applicationContext)
public Properties yamlResources2Properties(org.springframework.core.io.Resource... resources)
public Properties yamlBytes2Properties(byte[] bytes)
public Properties bytes2Properties(byte[] bytes) throws IOException
IOExceptionpublic <T> T bind(@NonNull
T instance,
org.springframework.boot.context.properties.bind.PlaceholdersResolver placeholdersResolver,
org.springframework.boot.context.properties.source.ConfigurationPropertySource... sources)
public <T> T bind(@NonNull
T instance,
Properties properties)
public <T> T parse(@NonNull
Class<T> cls,
org.springframework.boot.context.properties.bind.PlaceholdersResolver placeholdersResolver,
org.springframework.boot.context.properties.source.ConfigurationPropertySource... sources)
public <T> T parse(@NonNull
Class<T> cls,
Properties properties)
Copyright © 2018. All rights reserved.