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
f9a86363
Commit
f9a86363
authored
Apr 07, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5627 from Johnny Lim
* gh-5627: Polish
parents
f9b51cc8
3b5ecbd0
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
29 deletions
+31
-29
OnEnabledEndpointElementCondition.java
...uate/autoconfigure/OnEnabledEndpointElementCondition.java
+1
-1
OnEnabledInfoContributorCondition.java
...uate/autoconfigure/OnEnabledInfoContributorCondition.java
+1
-1
Health.java
.../java/org/springframework/boot/actuate/health/Health.java
+6
-6
Info.java
...main/java/org/springframework/boot/actuate/info/Info.java
+6
-6
InfoContributorAutoConfigurationTests.java
.../autoconfigure/InfoContributorAutoConfigurationTests.java
+6
-6
InfoEndpointTests.java
...ingframework/boot/actuate/endpoint/InfoEndpointTests.java
+1
-1
InfoMvcEndpointTests.java
...ework/boot/actuate/endpoint/mvc/InfoMvcEndpointTests.java
+1
-1
InfoMvcEndpointWithNoInfoContributorsTests.java
...point/mvc/InfoMvcEndpointWithNoInfoContributorsTests.java
+3
-3
JolokiaMvcEndpointContextPathTests.java
...uate/endpoint/mvc/JolokiaMvcEndpointContextPathTests.java
+2
-0
ImportAutoConfigurationTests.java
...work/boot/autoconfigure/ImportAutoConfigurationTests.java
+1
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-2
PropertySourcesBinder.java
.../org/springframework/boot/bind/PropertySourcesBinder.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledEndpointElementCondition.java
View file @
f9a86363
...
...
@@ -24,7 +24,7 @@ import org.springframework.core.annotation.AnnotationAttributes;
import
org.springframework.core.type.AnnotatedTypeMetadata
;
/**
* Base endpoint element condition. An element can be disabled globally via the
`defaults`
* Base endpoint element condition. An element can be disabled globally via the
{@code defaults}
* name or individually via the name of the element.
*
* @author Stephane Nicoll
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledInfoContributorCondition.java
View file @
f9a86363
...
...
@@ -19,7 +19,7 @@ package org.springframework.boot.actuate.autoconfigure;
import
org.springframework.context.annotation.Condition
;
/**
* {@link Condition} that checks if a info indicator is enabled.
* {@link Condition} that checks if a
n
info indicator is enabled.
*
* @author Stephane Nicoll
*/
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java
View file @
f9a86363
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
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.
...
...
@@ -219,15 +219,15 @@ public final class Health {
}
/**
* Record detail using {@code key} and {@code value}.
* Record detail using
given
{@code key} and {@code value}.
* @param key the detail key
* @param
data the detail data
* @param
value the detail value
* @return this {@link Builder} instance
*/
public
Builder
withDetail
(
String
key
,
Object
data
)
{
public
Builder
withDetail
(
String
key
,
Object
value
)
{
Assert
.
notNull
(
key
,
"Key must not be null"
);
Assert
.
notNull
(
data
,
"Data
must not be null"
);
this
.
details
.
put
(
key
,
data
);
Assert
.
notNull
(
value
,
"Value
must not be null"
);
this
.
details
.
put
(
key
,
value
);
return
this
;
}
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/Info.java
View file @
f9a86363
...
...
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
/**
* Carries information of the application.
* <p>
* Each detail element can be singular or a hierarchical object such as a
pojo
or a nested
* Each detail element can be singular or a hierarchical object such as a
POJO
or a nested
* Map.
*
* @author Meang Akira Tanaka
...
...
@@ -100,13 +100,13 @@ public final class Info {
}
/**
* Record detail using {@code key} and {@code value}.
* Record detail using
given
{@code key} and {@code value}.
* @param key the detail key
* @param
data the detail data
* @param
value the detail value
* @return this {@link Builder} instance
*/
public
Builder
withDetail
(
String
key
,
Object
data
)
{
this
.
content
.
put
(
key
,
data
);
public
Builder
withDetail
(
String
key
,
Object
value
)
{
this
.
content
.
put
(
key
,
value
);
return
this
;
}
...
...
@@ -122,7 +122,7 @@ public final class Info {
}
/**
* Create a new {@link Info} instance base on the state of this builder.
* Create a new {@link Info} instance base
d
on the state of this builder.
* @return a new {@link Info} instance
*/
public
Info
build
()
{
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/InfoContributorAutoConfigurationTests.java
View file @
f9a86363
...
...
@@ -69,7 +69,7 @@ public class InfoContributorAutoConfigurationTests {
@Test
public
void
defaultInfoContributorsDisabledWithCustomOne
()
{
load
(
CustomInfo
Provide
rConfiguration
.
class
,
load
(
CustomInfo
Contributo
rConfiguration
.
class
,
"management.info.defaults.enabled:false"
);
Map
<
String
,
InfoContributor
>
beans
=
this
.
context
.
getBeansOfType
(
InfoContributor
.
class
);
...
...
@@ -108,7 +108,7 @@ public class InfoContributorAutoConfigurationTests {
@Test
public
void
customGitInfoContributor
()
{
load
(
CustomGitInfo
Provide
rConfiguration
.
class
);
load
(
CustomGitInfo
Contributo
rConfiguration
.
class
);
assertThat
(
this
.
context
.
getBean
(
GitInfoContributor
.
class
))
.
isSameAs
(
this
.
context
.
getBean
(
"customGitInfoContributor"
));
}
...
...
@@ -143,7 +143,7 @@ public class InfoContributorAutoConfigurationTests {
@Test
public
void
customBuildInfoContributor
()
{
load
(
CustomBuildInfo
Provide
rConfiguration
.
class
);
load
(
CustomBuildInfo
Contributo
rConfiguration
.
class
);
assertThat
(
this
.
context
.
getBean
(
BuildInfoContributor
.
class
))
.
isSameAs
(
this
.
context
.
getBean
(
"customBuildInfoContributor"
));
}
...
...
@@ -198,7 +198,7 @@ public class InfoContributorAutoConfigurationTests {
}
@Configuration
static
class
CustomInfo
Provide
rConfiguration
{
static
class
CustomInfo
Contributo
rConfiguration
{
@Bean
public
InfoContributor
customInfoContributor
()
{
...
...
@@ -212,7 +212,7 @@ public class InfoContributorAutoConfigurationTests {
}
@Configuration
static
class
CustomGitInfo
Provide
rConfiguration
{
static
class
CustomGitInfo
Contributo
rConfiguration
{
@Bean
public
GitInfoContributor
customGitInfoContributor
()
{
...
...
@@ -222,7 +222,7 @@ public class InfoContributorAutoConfigurationTests {
}
@Configuration
static
class
CustomBuildInfo
Provide
rConfiguration
{
static
class
CustomBuildInfo
Contributo
rConfiguration
{
@Bean
public
BuildInfoContributor
customBuildInfoContributor
()
{
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/InfoEndpointTests.java
View file @
f9a86363
...
...
@@ -52,7 +52,7 @@ public class InfoEndpointTests extends AbstractEndpointTests<InfoEndpoint> {
public
static
class
Config
{
@Bean
public
InfoContributor
info
Provide
r
()
{
public
InfoContributor
info
Contributo
r
()
{
return
new
InfoContributor
()
{
@Override
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/InfoMvcEndpointTests.java
View file @
f9a86363
...
...
@@ -49,7 +49,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
* Tests for {@link Info
MvcEndpointTests}
* Tests for {@link Info
Endpoint} with {@link MockMvc}.
*
* @author Meang Akira Tanaka
* @author Stephane Nicoll
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/InfoMvcEndpointWith
outAnyInfoProvide
rsTests.java
→
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/InfoMvcEndpointWith
NoInfoContributo
rsTests.java
View file @
f9a86363
...
...
@@ -43,13 +43,14 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
* Tests for {@link InfoMvcEndpointWithoutAnyInfoProvidersTests}
* Tests for {@link InfoEndpoint} with {@link MockMvc} when there are no
* {@link InfoContributor InfoContributors}.
*
* @author Meang Akira Tanaka
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
public
class
InfoMvcEndpointWith
outAnyInfoProvide
rsTests
{
public
class
InfoMvcEndpointWith
NoInfoContributo
rsTests
{
@Autowired
private
WebApplicationContext
context
;
...
...
@@ -58,7 +59,6 @@ public class InfoMvcEndpointWithoutAnyInfoProvidersTests {
@Before
public
void
setUp
()
{
this
.
context
.
getBean
(
InfoEndpoint
.
class
).
setEnabled
(
true
);
this
.
mvc
=
MockMvcBuilders
.
webAppContextSetup
(
this
.
context
).
build
();
}
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpointContextPathTests.java
View file @
f9a86363
...
...
@@ -49,6 +49,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
* Tests for {@link JolokiaMvcEndpoint} with a custom management context path.
*
* @author Christian Dupuis
* @author Dave Syer
*/
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ImportAutoConfigurationTests.java
View file @
f9a86363
...
...
@@ -30,7 +30,7 @@ import org.springframework.util.ClassUtils;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
* Tests for {@link ImportAutoConfiguration
Tests
}.
* Tests for {@link ImportAutoConfiguration}.
*
* @author Phillip Webb
*/
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
f9a86363
...
...
@@ -969,12 +969,12 @@ content into your application; rather pick only the properties that you need.
# INFO CONTRIBUTORS
management.info.build.enabled=true # Enable build info.
management.info.build.mode=simple # Mode to use to expose build information.
management.info.defaults.enabled=true # Enable default
health indica
tors.
management.info.defaults.enabled=true # Enable default
info contribu
tors.
management.info.env.enabled=true # Enable environment info.
management.info.git.enabled=true # Enable git info.
management.info.git.mode=simple # Mode to use to expose git information.
# TRACING (
(
{sc-spring-boot-actuator}/trace/TraceProperties.{sc-ext}[TraceProperties])
# TRACING ({sc-spring-boot-actuator}/trace/TraceProperties.{sc-ext}[TraceProperties])
management.trace.include=request-headers,response-headers,errors # Items to be included in the trace.
# REMOTE SHELL
...
...
spring-boot/src/main/java/org/springframework/boot/bind/PropertySourcesBinder.java
View file @
f9a86363
...
...
@@ -83,7 +83,7 @@ public class PropertySourcesBinder {
/**
* Extract the keys using the specified {@code prefix}. The prefix won't be included.
* <p>
* Any key that starts with the {@code prefix} will be included
* Any key that starts with the {@code prefix} will be included
.
* @param prefix the prefix to use
* @return the keys matching the prefix
*/
...
...
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