类 PropertiesPropertySourceLoader

    • 方法详细资料

      • load

        public org.springframework.core.env.PropertySource<?> load​(String name,
                                                                   org.springframework.core.io.Resource resource,
                                                                   String profile)
                                                            throws IOException
        从接口复制的说明: PropertySourceLoader
        Load the resource into a property source.
        指定者:
        load 在接口中 PropertySourceLoader
        参数:
        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