Merge branch '2.0.x'
This commit is contained in:
@@ -195,9 +195,9 @@ public class BusAutoConfiguration implements ApplicationEventPublisherAware {
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnBean(ContextRefresher.class)
|
||||
@ConditionalOnProperty(value = "endpoints.spring.cloud.bus.refresh.enabled", matchIfMissing = true)
|
||||
protected static class BusRefreshEndpointConfiguration {
|
||||
@Bean
|
||||
@ConditionalOnEnabledEndpoint
|
||||
public RefreshBusEndpoint refreshBusEndpoint(ApplicationContext context,
|
||||
BusProperties bus) {
|
||||
return new RefreshBusEndpoint(context, bus.getId());
|
||||
|
||||
Reference in New Issue
Block a user