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
c90633aa
Commit
c90633aa
authored
Oct 11, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
c40aab65
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
HealthIndicatorAutoConfiguration.java
...tuate/autoconfigure/HealthIndicatorAutoConfiguration.java
+0
-2
DiskSpaceHealthIndicatorProperties.java
...ot/actuate/health/DiskSpaceHealthIndicatorProperties.java
+7
-1
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java
View file @
c90633aa
...
@@ -54,7 +54,6 @@ import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
...
@@ -54,7 +54,6 @@ import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import
org.springframework.boot.autoconfigure.mongo.MongoDataAutoConfiguration
;
import
org.springframework.boot.autoconfigure.mongo.MongoDataAutoConfiguration
;
import
org.springframework.boot.autoconfigure.redis.RedisAutoConfiguration
;
import
org.springframework.boot.autoconfigure.redis.RedisAutoConfiguration
;
import
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration
;
import
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
...
@@ -271,7 +270,6 @@ public class HealthIndicatorAutoConfiguration {
...
@@ -271,7 +270,6 @@ public class HealthIndicatorAutoConfiguration {
}
}
@Bean
@Bean
@ConfigurationProperties
(
"health.diskspace"
)
public
DiskSpaceHealthIndicatorProperties
diskSpaceHealthIndicatorProperties
()
{
public
DiskSpaceHealthIndicatorProperties
diskSpaceHealthIndicatorProperties
()
{
return
new
DiskSpaceHealthIndicatorProperties
();
return
new
DiskSpaceHealthIndicatorProperties
();
}
}
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java
View file @
c90633aa
...
@@ -18,6 +18,7 @@ package org.springframework.boot.actuate.health;
...
@@ -18,6 +18,7 @@ package org.springframework.boot.actuate.health;
import
java.io.File
;
import
java.io.File
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
/**
/**
...
@@ -26,11 +27,16 @@ import org.springframework.util.Assert;
...
@@ -26,11 +27,16 @@ import org.springframework.util.Assert;
* @author Andy Wilkinson
* @author Andy Wilkinson
* @since 1.2.0
* @since 1.2.0
*/
*/
@ConfigurationProperties
(
"health.diskspace"
)
public
class
DiskSpaceHealthIndicatorProperties
{
public
class
DiskSpaceHealthIndicatorProperties
{
private
static
final
int
MEGABYTES
=
1024
*
1024
;
private
static
final
int
DEFAULT_THRESHOLD
=
10
*
MEGABYTES
;
private
File
path
=
new
File
(
"."
);
private
File
path
=
new
File
(
"."
);
private
long
threshold
=
10
*
1024
*
1024
;
private
long
threshold
=
DEFAULT_THRESHOLD
;
public
File
getPath
()
{
public
File
getPath
()
{
return
this
.
path
;
return
this
.
path
;
...
...
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
c90633aa
...
@@ -700,8 +700,8 @@ default converter(s) provided by `Jackson2ObjectMapperBuilder`.
...
@@ -700,8 +700,8 @@ default converter(s) provided by `Jackson2ObjectMapperBuilder`.
The `ObjectMapper` (or `XmlMapper` for Jackson XML converter) instance created by default
The `ObjectMapper` (or `XmlMapper` for Jackson XML converter) instance created by default
have the following customized properties:
have the following customized properties:
*
MapperFeature.DEFAULT_VIEW_INCLUSION
is disabled
*
`MapperFeature.DEFAULT_VIEW_INCLUSION`
is disabled
*
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
is disabled
*
`DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES`
is disabled
Spring Boot has also some features to make it easier to customize this behavior.
Spring Boot has also some features to make it easier to customize this behavior.
...
...
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