Spring Cloud 学习系列:消息总线自动刷新配置——Spring Cloud Bus
@Configuration
@EnableAutoConfiguration
@EnableConfigServer
@EnableCircuitBreaker
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrixDashboard
@EnableTurbine
@SpringBootApplication
public class SpringCloudApplication {
// ... 其他配置类定义
@Autowired
private Environment environment;
@Autowired
private DiscoveryClient discoveryClient;
@Autowired
private ServerProperties serverProperties;
@Autowired
private SpringApplication springApplication;
@Autowired
private SimpleMonitorController simpleMonitorController;
@Autowired
private TurbineDataMonitorController turbineDataMonitorController;
@Autowired
private HystrixMetricsStreamController hystrixMetricsStreamController;
@Autowired
private DashboardController dashboardController;
@Autowired
private FeignClientWrapper feignClientWrapper;
@Autowired
private ConfigServerWrapper configServerWrapper;
@Autowired
private ConfigClientProperties configClientProperties;
@Autowired
private ConfigServerProperties configServerProperties;
@Autowired
private ConfigClientHealthIndicator configClientHealthIndicator;
@Autowired
private ConfigServerHealthIndicator configServerHealthIndicator;
@Autowired
private DiscoveryClientHealthIndicator discoveryClientHealthIndicator;
@Autowired
private FeignClientHealthIndicator feignClientHealthIndicator;
@Autowired
private HystrixHealthIndicator hystrixHealthIndicator;
@Autowired
private TurbineHealthIndicator turbineHealthIndicator;
@Autowired
private RefreshScope refreshScope;
@Autowired
private ConfigClientRetryInterceptor configClientRetryInterceptor;
@Autowired
private ConfigClientRequestInterceptor configClientRequestInterceptor;
@Autowired
private ConfigClientFeignConfiguration configClientFeignConfiguration;
@Autowired
private ConfigClientAutoConfiguration configClientAutoConfiguration;
@Autowired
private ConfigServerAutoConfiguration configServerAutoConfiguration;
@Autowired
private ConfigClientSecurityAutoConfiguration configClientSecurityAutoConfiguration;
@Autowired
private ConfigServerSecurityAutoConfiguration configServerSecurityAutoConfiguration;
@Autowired
private ConfigClientNamespaceAutoConfiguration
评论已关闭