Package com.alibaba.cloud.nacos.client
Class NacosPropertySourceLocator
java.lang.Object
com.alibaba.cloud.nacos.client.NacosPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
@Order(0)
public class NacosPropertySourceLocator
extends Object
implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
- Author:
- xiaojing, pbting
-
Constructor Summary
ConstructorsConstructorDescriptionNacosPropertySourceLocator(NacosConfigManager nacosConfigManager) NacosPropertySourceLocator(NacosConfigProperties nacosConfigProperties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.env.PropertySource<?>locate(org.springframework.core.env.Environment env) voidsetNacosConfigManager(NacosConfigManager nacosConfigManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
locateCollection
-
Constructor Details
-
NacosPropertySourceLocator
Deprecated.recommend to useNacosPropertySourceLocator(com.alibaba.cloud.nacos.NacosConfigManager).- Parameters:
nacosConfigProperties- nacosConfigProperties
-
NacosPropertySourceLocator
-
-
Method Details
-
locate
public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment env) - Specified by:
locatein interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
setNacosConfigManager
-