forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
184 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2012-2019 the original author or authors. | ||
* Copyright 2012-2021 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -20,7 +20,7 @@ | |
import org.springframework.boot.actuate.info.EnvironmentInfoContributor; | ||
import org.springframework.boot.actuate.info.GitInfoContributor; | ||
import org.springframework.boot.actuate.info.InfoContributor; | ||
import org.springframework.boot.actuate.info.java.JavaInfoContributor; | ||
import org.springframework.boot.actuate.info.JavaInfoContributor; | ||
import org.springframework.boot.autoconfigure.AutoConfigureAfter; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
|
@@ -82,7 +82,7 @@ public InfoContributor buildInfoContributor(BuildProperties buildProperties) { | |
@Bean | ||
@ConditionalOnEnabledInfoContributor("java") | ||
@Order(DEFAULT_ORDER) | ||
public InfoContributor javaInfoContributor() { | ||
public JavaInfoContributor javaInfoContributor() { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wilkinsona
|
||
return new JavaInfoContributor(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
...ring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/java/JavaInfo.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
...pring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/java/JreInfo.java
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
...spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/java/VmInfo.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...-boot-actuator/src/main/java/org/springframework/boot/actuate/info/java/package-info.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Given that it exposes potentially sensitive information and you don't have to provide anything else to switch it on (no build or git properties, for example), I think we should err on the side of caution and make this conditional on an enabled property being set to
true
.