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
e7bf4154
Commit
e7bf4154
authored
Aug 23, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3809 from izeye/typo-20150822
* pr/3809: Fix typos
parents
69fcae6b
e2119d33
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
ConditionalOnEnabledHealthIndicator.java
...te/autoconfigure/ConditionalOnEnabledHealthIndicator.java
+2
-2
HealthIndicatorAutoConfiguration.java
...tuate/autoconfigure/HealthIndicatorAutoConfiguration.java
+9
-9
OnEnabledHealthIndicatorCondition.java
...uate/autoconfigure/OnEnabledHealthIndicatorCondition.java
+1
-1
HealthIndicatorAutoConfigurationTests.java
.../autoconfigure/HealthIndicatorAutoConfigurationTests.java
+1
-1
AbstractConfigurableEmbeddedServletContainer.java
...mbedded/AbstractConfigurableEmbeddedServletContainer.java
+1
-1
AbstractEmbeddedServletContainerFactoryTests.java
...mbedded/AbstractEmbeddedServletContainerFactoryTests.java
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ConditionalOnEnabled
n
HealthIndicator.java
→
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ConditionalOnEnabledHealthIndicator.java
View file @
e7bf4154
...
...
@@ -27,7 +27,7 @@ import org.springframework.context.annotation.Conditional;
/**
* {@link Conditional} that checks whether or not a default health indicator is enabled.
* Matches if the value of the {@code management.health.<name>.enabled} property is
* {@code true}. Otherwise
, matches if the value of the
* {@code true}. Otherwise, matches if the value of the
* {@code management.health.defaults.enabled} property is {@code true} or if it is not
* configured.
*
...
...
@@ -38,7 +38,7 @@ import org.springframework.context.annotation.Conditional;
@Target
({
ElementType
.
TYPE
,
ElementType
.
METHOD
})
@Documented
@Conditional
(
OnEnabledHealthIndicatorCondition
.
class
)
public
@interface
ConditionalOnEnabled
n
HealthIndicator
{
public
@interface
ConditionalOnEnabledHealthIndicator
{
/**
* The name of the health indicator.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java
View file @
e7bf4154
...
...
@@ -153,7 +153,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnClass
(
JdbcTemplate
.
class
)
@ConditionalOnBean
(
DataSource
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"db"
)
@ConditionalOnEnabledHealthIndicator
(
"db"
)
public
static
class
DataSourcesHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
DataSourceHealthIndicator
,
DataSource
>
implements
InitializingBean
{
...
...
@@ -193,7 +193,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
MongoTemplate
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"mongo"
)
@ConditionalOnEnabledHealthIndicator
(
"mongo"
)
public
static
class
MongoHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
MongoHealthIndicator
,
MongoTemplate
>
{
...
...
@@ -210,7 +210,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
RedisConnectionFactory
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"redis"
)
@ConditionalOnEnabledHealthIndicator
(
"redis"
)
public
static
class
RedisHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
RedisHealthIndicator
,
RedisConnectionFactory
>
{
...
...
@@ -228,7 +228,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
RabbitTemplate
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"rabbit"
)
@ConditionalOnEnabledHealthIndicator
(
"rabbit"
)
public
static
class
RabbitHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
RabbitHealthIndicator
,
RabbitTemplate
>
{
...
...
@@ -245,7 +245,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
SolrServer
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"solr"
)
@ConditionalOnEnabledHealthIndicator
(
"solr"
)
public
static
class
SolrHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
SolrHealthIndicator
,
SolrServer
>
{
...
...
@@ -261,7 +261,7 @@ public class HealthIndicatorAutoConfiguration {
}
@Configuration
@ConditionalOnEnabled
n
HealthIndicator
(
"diskspace"
)
@ConditionalOnEnabledHealthIndicator
(
"diskspace"
)
public
static
class
DiskSpaceHealthIndicatorConfiguration
{
@Bean
...
...
@@ -280,7 +280,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
JavaMailSenderImpl
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"mail"
)
@ConditionalOnEnabledHealthIndicator
(
"mail"
)
public
static
class
MailHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
MailHealthIndicator
,
JavaMailSenderImpl
>
{
...
...
@@ -298,7 +298,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
ConnectionFactory
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"jms"
)
@ConditionalOnEnabledHealthIndicator
(
"jms"
)
public
static
class
JmsHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
JmsHealthIndicator
,
ConnectionFactory
>
{
...
...
@@ -315,7 +315,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean
(
Client
.
class
)
@ConditionalOnEnabled
n
HealthIndicator
(
"elasticsearch"
)
@ConditionalOnEnabledHealthIndicator
(
"elasticsearch"
)
@EnableConfigurationProperties
(
ElasticsearchHealthIndicatorProperties
.
class
)
public
static
class
ElasticsearchHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration
<
ElasticsearchHealthIndicator
,
Client
>
{
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java
View file @
e7bf4154
...
...
@@ -31,7 +31,7 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
*/
class
OnEnabledHealthIndicatorCondition
extends
SpringBootCondition
{
private
static
final
String
ANNOTATION_CLASS
=
ConditionalOnEnabled
n
HealthIndicator
.
class
private
static
final
String
ANNOTATION_CLASS
=
ConditionalOnEnabledHealthIndicator
.
class
.
getName
();
@Override
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationTests.java
View file @
e7bf4154
...
...
@@ -122,7 +122,7 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
.
register
(
HealthIndicatorAutoConfiguration
.
class
,
ManagementServerProperties
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.enabled:false"
,
"management.health.
defaults.
enabled:false"
,
"management.health.diskspace.enabled:true"
);
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java
View file @
e7bf4154
...
...
@@ -114,7 +114,7 @@ public abstract class AbstractConfigurableEmbeddedServletContainer implements
}
if
(!
contextPath
.
startsWith
(
"/"
)
||
contextPath
.
endsWith
(
"/"
))
{
throw
new
IllegalArgumentException
(
"ContextPath must start with '/ and not end with '/'"
);
"ContextPath must start with '/
'
and not end with '/'"
);
}
}
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java
View file @
e7bf4154
...
...
@@ -245,14 +245,14 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
@Test
public
void
contextPathMustStartWithSlash
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
expectMessage
(
"ContextPath must start with '/ and not end with '/'"
);
this
.
thrown
.
expectMessage
(
"ContextPath must start with '/
'
and not end with '/'"
);
getFactory
().
setContextPath
(
"missingslash"
);
}
@Test
public
void
contextPathMustNotEndWithSlash
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
expectMessage
(
"ContextPath must start with '/ and not end with '/'"
);
this
.
thrown
.
expectMessage
(
"ContextPath must start with '/
'
and not end with '/'"
);
getFactory
().
setContextPath
(
"extraslash/"
);
}
...
...
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