接口 PropertySourceLoader

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      String[]getFileExtensions()
      Returns the file extensions that the loader supports (excluding the '.').
      org.springframework.core.env.PropertySource<?>load​(String name, org.springframework.core.io.Resource resource, String profile)
      Load the resource into a property source.
    • 方法详细资料

      • getFileExtensions

        String[] getFileExtensions()
        Returns the file extensions that the loader supports (excluding the '.').
        返回:
        the file extensions
      • load

        org.springframework.core.env.PropertySource<?> load​(String name,
                                                            org.springframework.core.io.Resource resource,
                                                            String profile)
                                                     throws IOException
        Load the resource into a property source.
        参数:
        name - the name of the property source
        resource - the resource to load
        profile - the name of the profile to load or null. The profile can be used to load multi-document files (such as YAML). Simple property formats should null when asked to load a profile.
        返回:
        a property source or null
        抛出:
        IOException - if the source cannot be loaded