@Configuration
@ConditionalOnExpression(value="${slate.httpclient.enabled:false} && ${slate.httpclient.apollo-support:false} && ( \'${slate.httpclient.apollo-namespace:<null/>}\'.equals(\"<null/>\") || \'${slate.httpclient.apollo-namespace:<null/>}\'.equals(\"application\") || \'${slate.httpclient.apollo-namespace:<null/>}\'.length() == 0 )")
@ConditionalOnClass(value=com.ctrip.framework.apollo.Config.class)
public class HttpClientsApolloConfig
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
HttpClients阿波罗动态配置: 支持在Apollo配置中心上动态调整客户端配置
配置前缀: slate.httpclient
| 构造器和说明 |
|---|
HttpClientsApolloConfig(HttpClients httpClients) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
onApolloConfigChanged(com.ctrip.framework.apollo.model.ConfigChangeEvent configChangeEvent) |
@Autowired public HttpClientsApolloConfig(HttpClients httpClients)
@ApolloConfigChangeListener public void onApolloConfigChanged(com.ctrip.framework.apollo.model.ConfigChangeEvent configChangeEvent)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.Exception