类 YamlPropertySourceFactory
- java.lang.Object
-
- me.youm.core.common.factory.YamlPropertySourceFactory
-
- 所有已实现的接口:
org.springframework.core.io.support.PropertySourceFactory
public class YamlPropertySourceFactory extends Object implements org.springframework.core.io.support.PropertySourceFactory
加载yml格式的自定义配置文件- 作者:
- youta
-
-
构造器概要
构造器 构造器 说明 YamlPropertySourceFactory()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.core.env.PropertySource<?>createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource)private PropertiesloadYamlIntoProperties(org.springframework.core.io.support.EncodedResource resource)
-
-
-
方法详细资料
-
createPropertySource
public org.springframework.core.env.PropertySource<?> createPropertySource(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
-
-