Skip to content

Commit c940192

Browse files
committed
Switch off info endpoint rebinding in Spring Boot 1.4
The new info endpoint doesn't need special treatment to pick up changes in the Environment, so we can just skip installing the old bean that manipulates it. Fixes spring-projectsgh-108
1 parent a3fc784 commit c940192

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
@@ -59,6 +59,7 @@
5959
public class RefreshEndpointAutoConfiguration {
6060

6161
@ConditionalOnBean(EndpointAutoConfiguration.class)
62+
@ConditionalOnMissingClass("org.springframework.boot.actuate.info.InfoContributor")
6263
@Bean
6364
InfoEndpointRebinderConfiguration infoEndpointRebinderConfiguration() {
6465
return new InfoEndpointRebinderConfiguration();

0 commit comments

Comments
 (0)