类 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 文件工厂类

  • 构造器详细资料

    • 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
      抛出:
      FileNotFoundException