类 PropertiesPropertySourceLoader
java.lang.Object
org.springframework.boot.env.PropertiesPropertySourceLoader
- 所有已实现的接口:
PropertySourceLoader
Strategy to load '.properties' files into a
PropertySource
.- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer, Phillip Webb, Madhura Bhave
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明String[]
Returns the file extensions that the loader supports (excluding the '.').List
<PropertySource<?>> Load the resource into one or more property sources.
-
构造器详细资料
-
PropertiesPropertySourceLoader
public PropertiesPropertySourceLoader()
-
-
方法详细资料
-
getFileExtensions
从接口复制的说明:PropertySourceLoader
Returns the file extensions that the loader supports (excluding the '.').- 指定者:
getFileExtensions
在接口中PropertySourceLoader
- 返回:
- the file extensions
-
load
从接口复制的说明:PropertySourceLoader
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.- 指定者:
load
在接口中PropertySourceLoader
- 参数:
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
-