类 NacosJsonPropertySourceLoader
java.lang.Object
com.alibaba.cloud.nacos.parser.AbstractPropertySourceLoader
com.alibaba.cloud.nacos.parser.NacosJsonPropertySourceLoader
- 所有已实现的接口:
org.springframework.boot.env.PropertySourceLoader
- 作者:
- zkz
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.alibaba.cloud.nacos.parser.AbstractPropertySourceLoader
canLoad, flattenedMap, load
-
构造器详细资料
-
NacosJsonPropertySourceLoader
public NacosJsonPropertySourceLoader()
-
-
方法详细资料
-
getFileExtensions
Returns the file extensions that the loader supports (excluding the '.').- 返回:
- the file extensions
-
doLoad
protected List<org.springframework.core.env.PropertySource<?>> doLoad(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.- 指定者:
doLoad在类中AbstractPropertySourceLoader- 参数:
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
-
reloadMap
Reload the key ending in `value` if need.
-