Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8325fce5
Commit
8325fce5
authored
Mar 07, 2019
by
Brian Clozel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting
parent
6586bae8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ConditionalOnExposedEndpoint.java
...gure/endpoint/condition/ConditionalOnExposedEndpoint.java
+2
-1
ConditionalOnExposedEndpointTests.java
...endpoint/condition/ConditionalOnExposedEndpointTests.java
+3
-4
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpoint.java
View file @
8325fce5
...
...
@@ -37,7 +37,8 @@ import org.springframework.core.env.Environment;
* <li>{@code "management.endpoints.web.exposure.*"} expose this endpoint</li>
* <li>or if JMX is enabled and {@code "management.endpoints.jmx.exposure.*"} expose this
* endpoint</li>
* <li>or if the application is running on {@link org.springframework.boot.cloud.CloudPlatform#CLOUD_FOUNDRY}</li>
* <li>or if the application is running on
* {@link org.springframework.boot.cloud.CloudPlatform#CLOUD_FOUNDRY}</li>
* </ul>
*
* When placed on a {@code @Bean} method, the endpoint defaults to the return type of the
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpointTests.java
View file @
8325fce5
...
...
@@ -144,10 +144,9 @@ public class ConditionalOnExposedEndpointTests {
@Test
public
void
outcomeOnCloudFoundryShouldMatchAll
()
{
this
.
contextRunner
.
withPropertyValues
(
"VCAP_APPLICATION:---"
)
.
run
((
context
)
->
assertThat
(
context
).
hasBean
(
"info"
)
.
hasBean
(
"health"
).
hasBean
(
"spring"
).
hasBean
(
"test"
));
this
.
contextRunner
.
withPropertyValues
(
"VCAP_APPLICATION:---"
)
.
run
((
context
)
->
assertThat
(
context
).
hasBean
(
"info"
).
hasBean
(
"health"
)
.
hasBean
(
"spring"
).
hasBean
(
"test"
));
}
@Endpoint
(
id
=
"health"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment