类 YamlPropertySourceFactory
java.lang.Object
com.sie.mbm.mom.framework.common.factory.YamlPropertySourceFactory
- 所有已实现的接口:
org.springframework.core.io.support.PropertySourceFactory
public class YamlPropertySourceFactory
extends Object
implements org.springframework.core.io.support.PropertySourceFactory
读取自定义 yaml 文件工厂类
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource) private PropertiesloadYamlIntoProperties(org.springframework.core.io.support.EncodedResource resource)
-
构造器详细资料
-
YamlPropertySourceFactory
public YamlPropertySourceFactory()
-
-
方法详细资料
-
createPropertySource
public org.springframework.core.env.PropertySource<?> createPropertySource(@Nullable String name, org.springframework.core.io.support.EncodedResource resource) throws IOException - 指定者:
createPropertySource在接口中org.springframework.core.io.support.PropertySourceFactory- 抛出:
IOException
-
loadYamlIntoProperties
private Properties loadYamlIntoProperties(org.springframework.core.io.support.EncodedResource resource) throws FileNotFoundException
-