@Configuration @EnableConfigurationProperties(value=ServerInterfaceSubscribeProperties.class) @ConditionalOnProperty(prefix="server.interface.subscribe", name="enable", havingValue="true", matchIfMissing=true) public class ServerInterfaceSubscribeConfiguration extends Object
服务接口订阅配置
| 构造器和说明 |
|---|
ServerInterfaceSubscribeConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
ServerApisContainer |
serverApisContainer(org.springframework.context.ApplicationEventPublisher publisher) |
WatchServerChangedListener |
serverChangedListener(org.springframework.context.ApplicationEventPublisher publisher) |
WatchServerChangedLocator |
serverChangedLocator(com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery nacosServiceDiscovery,
PermissionServerApisClient serverApisClient) |
@Bean public WatchServerChangedListener serverChangedListener(org.springframework.context.ApplicationEventPublisher publisher)
@Bean public WatchServerChangedLocator serverChangedLocator(com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery nacosServiceDiscovery, PermissionServerApisClient serverApisClient)
@Bean
@ConditionalOnMissingBean(value={ServerApisContainer.class,ServerApis.class})
public ServerApisContainer serverApisContainer(org.springframework.context.ApplicationEventPublisher publisher)
Copyright © 2020. All rights reserved.