接口 PropertySourceLoader

    • 方法概要

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

      • getFileExtensions

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

        List<org.springframework.core.env.PropertySource<?>> load​(String name,
                                                                  org.springframework.core.io.Resource resource)
                                                           throws IOException
        Load the resource into one or more property sources. Implementations may either return a list containing a single source, or in the case of a multi-document format such as yaml a source for each document in the resource.
        参数:
        name - the root name of the property source. If multiple documents are loaded an additional suffix should be added to the name for each source loaded.
        resource - the resource to load
        返回:
        a list property sources
        抛出:
        IOException - if the source cannot be loaded