Skip to content

Commit b1a83c4

Browse files
committed
Allow refresh auto config to be disabled by property.
fixes spring-projectsgh-276
1 parent 2fdbc5a commit b1a83c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshEndpointAutoConfiguration.java

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RefreshScopeHealthIndicator refreshScopeHealthIndicator(RefreshScope scope,
6565
protected static class RefreshEndpointConfiguration {
6666

6767
@Bean
68+
@ConditionalOnBean(ContextRefresher.class)
6869
@ConditionalOnEnabledEndpoint
6970
@ConditionalOnMissingBean
7071
public RefreshEndpoint refreshEndpoint(ContextRefresher contextRefresher) {

0 commit comments

Comments
 (0)