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
002fa405
Commit
002fa405
authored
Jan 31, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
5e2d5959
c84a0f53
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
31 deletions
+25
-31
CachesEndpointAutoConfiguration.java
.../autoconfigure/cache/CachesEndpointAutoConfiguration.java
+2
-5
HealthIndicatorAutoConfiguration.java
...utoconfigure/health/HealthIndicatorAutoConfiguration.java
+5
-9
DataSourceHealthIndicatorAutoConfiguration.java
...gure/jdbc/DataSourceHealthIndicatorAutoConfiguration.java
+3
-4
JmsHealthIndicatorAutoConfiguration.java
...utoconfigure/jms/JmsHealthIndicatorAutoConfiguration.java
+3
-4
MailHealthIndicatorAutoConfiguration.java
...oconfigure/mail/MailHealthIndicatorAutoConfiguration.java
+3
-4
QuartzAutoConfiguration.java
...rk/boot/autoconfigure/quartz/QuartzAutoConfiguration.java
+3
-4
JspTemplateAvailabilityProvider.java
...onfigure/web/servlet/JspTemplateAvailabilityProvider.java
+6
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cache/CachesEndpointAutoConfiguration.java
View file @
002fa405
...
...
@@ -16,10 +16,8 @@
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
cache
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
org.springframework.beans.factory.ObjectProvider
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.cache.CachesEndpoint
;
import
org.springframework.boot.actuate.cache.CachesEndpointWebExtension
;
...
...
@@ -48,9 +46,8 @@ public class CachesEndpointAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public
CachesEndpoint
cachesEndpoint
(
ObjectProvider
<
Map
<
String
,
CacheManager
>>
cacheManagers
)
{
return
new
CachesEndpoint
(
cacheManagers
.
getIfAvailable
(
LinkedHashMap:
:
new
));
public
CachesEndpoint
cachesEndpoint
(
Map
<
String
,
CacheManager
>
cacheManagers
)
{
return
new
CachesEndpoint
(
cacheManagers
);
}
@Bean
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.java
View file @
002fa405
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -16,12 +16,10 @@
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
health
;
import
java.util.Collections
;
import
java.util.Map
;
import
reactor.core.publisher.Flux
;
import
org.springframework.beans.factory.ObjectProvider
;
import
org.springframework.boot.actuate.health.ApplicationHealthIndicator
;
import
org.springframework.boot.actuate.health.HealthAggregator
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
...
...
@@ -87,13 +85,11 @@ public class HealthIndicatorAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public
ReactiveHealthIndicatorRegistry
reactiveHealthIndicatorRegistry
(
ObjectProvider
<
Map
<
String
,
ReactiveHealthIndicator
>
>
reactiveHealthIndicators
,
ObjectProvider
<
Map
<
String
,
HealthIndicator
>
>
healthIndicators
)
{
Map
<
String
,
ReactiveHealthIndicator
>
reactiveHealthIndicators
,
Map
<
String
,
HealthIndicator
>
healthIndicators
)
{
return
new
ReactiveHealthIndicatorRegistryFactory
()
.
createReactiveHealthIndicatorRegistry
(
reactiveHealthIndicators
.
getIfAvailable
(
Collections:
:
emptyMap
),
healthIndicators
.
getIfAvailable
(
Collections:
:
emptyMap
));
.
createReactiveHealthIndicatorRegistry
(
reactiveHealthIndicators
,
healthIndicators
);
}
}
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/jdbc/DataSourceHealthIndicatorAutoConfiguration.java
View file @
002fa405
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -72,10 +72,9 @@ public class DataSourceHealthIndicatorAutoConfiguration extends
private
DataSourcePoolMetadataProvider
poolMetadataProvider
;
public
DataSourceHealthIndicatorAutoConfiguration
(
ObjectProvider
<
Map
<
String
,
DataSource
>>
dataSources
,
public
DataSourceHealthIndicatorAutoConfiguration
(
Map
<
String
,
DataSource
>
dataSources
,
ObjectProvider
<
DataSourcePoolMetadataProvider
>
metadataProviders
)
{
this
.
dataSources
=
filterDataSources
(
dataSources
.
getIfAvailable
()
);
this
.
dataSources
=
filterDataSources
(
dataSources
);
this
.
metadataProviders
=
metadataProviders
.
orderedStream
()
.
collect
(
Collectors
.
toList
());
}
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/jms/JmsHealthIndicatorAutoConfiguration.java
View file @
002fa405
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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,6 @@ import java.util.Map;
import
javax.jms.ConnectionFactory
;
import
org.springframework.beans.factory.ObjectProvider
;
import
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthIndicatorConfiguration
;
import
org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator
;
import
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration
;
...
...
@@ -55,8 +54,8 @@ public class JmsHealthIndicatorAutoConfiguration extends
private
final
Map
<
String
,
ConnectionFactory
>
connectionFactories
;
public
JmsHealthIndicatorAutoConfiguration
(
ObjectProvider
<
Map
<
String
,
ConnectionFactory
>
>
connectionFactories
)
{
this
.
connectionFactories
=
connectionFactories
.
getIfAvailable
()
;
Map
<
String
,
ConnectionFactory
>
connectionFactories
)
{
this
.
connectionFactories
=
connectionFactories
;
}
@Bean
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/mail/MailHealthIndicatorAutoConfiguration.java
View file @
002fa405
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -18,7 +18,6 @@ package org.springframework.boot.actuate.autoconfigure.mail;
import
java.util.Map
;
import
org.springframework.beans.factory.ObjectProvider
;
import
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthIndicatorConfiguration
;
import
org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator
;
import
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration
;
...
...
@@ -53,8 +52,8 @@ public class MailHealthIndicatorAutoConfiguration extends
private
final
Map
<
String
,
JavaMailSenderImpl
>
mailSenders
;
public
MailHealthIndicatorAutoConfiguration
(
ObjectProvider
<
Map
<
String
,
JavaMailSenderImpl
>
>
mailSenders
)
{
this
.
mailSenders
=
mailSenders
.
getIfAvailable
()
;
Map
<
String
,
JavaMailSenderImpl
>
mailSenders
)
{
this
.
mailSenders
=
mailSenders
;
}
@Bean
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzAutoConfiguration.java
View file @
002fa405
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -74,13 +74,12 @@ public class QuartzAutoConfiguration {
public
QuartzAutoConfiguration
(
QuartzProperties
properties
,
ObjectProvider
<
SchedulerFactoryBeanCustomizer
>
customizers
,
ObjectProvider
<
JobDetail
[]>
jobDetails
,
ObjectProvider
<
Map
<
String
,
Calendar
>>
calendars
,
ObjectProvider
<
JobDetail
[]>
jobDetails
,
Map
<
String
,
Calendar
>
calendars
,
ObjectProvider
<
Trigger
[]>
triggers
,
ApplicationContext
applicationContext
)
{
this
.
properties
=
properties
;
this
.
customizers
=
customizers
;
this
.
jobDetails
=
jobDetails
.
getIfAvailable
();
this
.
calendars
=
calendars
.
getIfAvailable
()
;
this
.
calendars
=
calendars
;
this
.
triggers
=
triggers
.
getIfAvailable
();
this
.
applicationContext
=
applicationContext
;
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/JspTemplateAvailabilityProvider.java
View file @
002fa405
...
...
@@ -17,6 +17,7 @@
package
org
.
springframework
.
boot
.
autoconfigure
.
web
.
servlet
;
import
java.io.File
;
import
java.security.AccessControlException
;
import
org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider
;
import
org.springframework.core.env.Environment
;
...
...
@@ -42,7 +43,11 @@ public class JspTemplateAvailabilityProvider implements TemplateAvailabilityProv
if
(
resourceLoader
.
getResource
(
resourceName
).
exists
())
{
return
true
;
}
return
new
File
(
"src/main/webapp"
,
resourceName
).
exists
();
try
{
return
new
File
(
"src/main/webapp"
,
resourceName
).
exists
();
}
catch
(
AccessControlException
ex
)
{
}
}
return
false
;
}
...
...
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