类 YamlPropertySourceFactory

  • 所有已实现的接口:
    org.springframework.core.io.support.PropertySourceFactory

    public class YamlPropertySourceFactory
    extends Object
    implements org.springframework.core.io.support.PropertySourceFactory
    加载yml格式的自定义配置文件
    作者:
    youta
    • 构造器详细资料

      • YamlPropertySourceFactory

        public YamlPropertySourceFactory()
    • 方法详细资料

      • 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