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
89f7ec05
Commit
89f7ec05
authored
Jan 19, 2017
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
7253bb33
f3cd0ad2
Changes
54
Hide whitespace changes
Inline
Side-by-side
Showing
54 changed files
with
140 additions
and
65 deletions
+140
-65
HealthIndicatorProperties.java
...boot/actuate/autoconfigure/HealthIndicatorProperties.java
+1
-1
ManagementServerProperties.java
...oot/actuate/autoconfigure/ManagementServerProperties.java
+1
-1
MetricFilterProperties.java
...rk/boot/actuate/autoconfigure/MetricFilterProperties.java
+1
-1
AbstractEndpoint.java
...ringframework/boot/actuate/endpoint/AbstractEndpoint.java
+1
-1
LiquibaseEndpoint.java
...ingframework/boot/actuate/endpoint/LiquibaseEndpoint.java
+1
-1
AbstractMvcEndpoint.java
...mework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java
+1
-1
DocsMvcEndpoint.java
...gframework/boot/actuate/endpoint/mvc/DocsMvcEndpoint.java
+1
-1
HalJsonMvcEndpoint.java
...amework/boot/actuate/endpoint/mvc/HalJsonMvcEndpoint.java
+1
-1
HeapdumpMvcEndpoint.java
...mework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
+1
-1
DiskSpaceHealthIndicatorProperties.java
...ot/actuate/health/DiskSpaceHealthIndicatorProperties.java
+1
-1
MetricExportProperties.java
...k/boot/actuate/metrics/export/MetricExportProperties.java
+1
-1
TraceProperties.java
...g/springframework/boot/actuate/trace/TraceProperties.java
+6
-0
WebRequestTraceFilter.java
...ngframework/boot/actuate/trace/WebRequestTraceFilter.java
+29
-12
WebRequestTraceFilterTests.java
...mework/boot/actuate/trace/WebRequestTraceFilterTests.java
+45
-1
BatchProperties.java
...ngframework/boot/autoconfigure/batch/BatchProperties.java
+1
-1
RepositoryRestProperties.java
...oot/autoconfigure/data/rest/RepositoryRestProperties.java
+1
-1
JestProperties.java
...boot/autoconfigure/elasticsearch/jest/JestProperties.java
+1
-1
FlywayProperties.java
...framework/boot/autoconfigure/flyway/FlywayProperties.java
+1
-1
H2ConsoleProperties.java
...gframework/boot/autoconfigure/h2/H2ConsoleProperties.java
+1
-1
HazelcastProperties.java
...ork/boot/autoconfigure/hazelcast/HazelcastProperties.java
+1
-1
ProjectInfoProperties.java
...mework/boot/autoconfigure/info/ProjectInfoProperties.java
+1
-1
DataSourceConfiguration.java
...work/boot/autoconfigure/jdbc/DataSourceConfiguration.java
+1
-1
JerseyProperties.java
...framework/boot/autoconfigure/jersey/JerseyProperties.java
+1
-1
ActiveMQConnectionFactoryConfiguration.java
.../jms/activemq/ActiveMQConnectionFactoryConfiguration.java
+1
-1
LiquibaseProperties.java
...ork/boot/autoconfigure/liquibase/LiquibaseProperties.java
+1
-1
DeviceDelegatingViewResolverProperties.java
...figure/mobile/DeviceDelegatingViewResolverProperties.java
+1
-1
SecurityProperties.java
...ework/boot/autoconfigure/security/SecurityProperties.java
+1
-1
OAuth2ClientProperties.java
...autoconfigure/security/oauth2/OAuth2ClientProperties.java
+1
-1
AuthorizationServerProperties.java
...rity/oauth2/authserver/AuthorizationServerProperties.java
+1
-1
OAuth2AuthorizationServerConfiguration.java
...h2/authserver/OAuth2AuthorizationServerConfiguration.java
+9
-1
OAuth2ProtectedResourceDetailsConfiguration.java
...2/client/OAuth2ProtectedResourceDetailsConfiguration.java
+1
-1
OAuth2RestOperationsConfiguration.java
...rity/oauth2/client/OAuth2RestOperationsConfiguration.java
+1
-1
OAuth2SsoProperties.java
...configure/security/oauth2/client/OAuth2SsoProperties.java
+1
-1
SessionProperties.java
...amework/boot/autoconfigure/session/SessionProperties.java
+1
-1
FacebookProperties.java
...amework/boot/autoconfigure/social/FacebookProperties.java
+1
-1
LinkedInProperties.java
...amework/boot/autoconfigure/social/LinkedInProperties.java
+1
-1
TwitterProperties.java
...ramework/boot/autoconfigure/social/TwitterProperties.java
+1
-1
ThymeleafProperties.java
...ork/boot/autoconfigure/thymeleaf/ThymeleafProperties.java
+1
-1
TransactionProperties.java
...boot/autoconfigure/transaction/TransactionProperties.java
+1
-1
BitronixJtaConfiguration.java
...toconfigure/transaction/jta/BitronixJtaConfiguration.java
+1
-1
ServerProperties.java
...ingframework/boot/autoconfigure/web/ServerProperties.java
+1
-1
WebMvcProperties.java
...ingframework/boot/autoconfigure/web/WebMvcProperties.java
+1
-1
WebServicesProperties.java
...boot/autoconfigure/webservices/WebServicesProperties.java
+1
-1
SampleSimpleApplicationTests.java
...test/java/sample/simple/SampleSimpleApplicationTests.java
+1
-1
RestDocsAutoConfiguration.java
...est/autoconfigure/restdocs/RestDocsAutoConfiguration.java
+1
-1
MockMvcAutoConfiguration.java
...t/autoconfigure/web/servlet/MockMvcAutoConfiguration.java
+1
-1
TestDatabaseAutoConfigurationNoEmbeddedTests.java
...orm/jpa/TestDatabaseAutoConfigurationNoEmbeddedTests.java
+2
-2
PropertiesConfigurationFactory.java
...ngframework/boot/bind/PropertiesConfigurationFactory.java
+1
-1
ConfigurationProperties.java
...work/boot/context/properties/ConfigurationProperties.java
+1
-1
ConfigurationPropertiesBindingPostProcessor.java
...operties/ConfigurationPropertiesBindingPostProcessor.java
+1
-1
AtomikosProperties.java
...springframework/boot/jta/atomikos/AtomikosProperties.java
+1
-1
ConfigurationPropertiesBindingPostProcessorTests.java
...ies/ConfigurationPropertiesBindingPostProcessorTests.java
+1
-1
EnableConfigurationPropertiesTests.java
...ontext/properties/EnableConfigurationPropertiesTests.java
+1
-1
BindFailureAnalyzerTests.java
...k/boot/diagnostics/analyzer/BindFailureAnalyzerTests.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementServerProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricFilterProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/DocsMvcEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HalJsonMvcEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceProperties.java
View file @
89f7ec05
...
@@ -29,6 +29,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
...
@@ -29,6 +29,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @author Wallace Wadge
* @author Wallace Wadge
* @author Phillip Webb
* @author Phillip Webb
* @author Venil Noronha
* @author Venil Noronha
* @author Madhura Bhave
* @since 1.3.0
* @since 1.3.0
*/
*/
@ConfigurationProperties
(
prefix
=
"management.trace"
)
@ConfigurationProperties
(
prefix
=
"management.trace"
)
...
@@ -79,6 +80,11 @@ public class TraceProperties {
...
@@ -79,6 +80,11 @@ public class TraceProperties {
*/
*/
COOKIES
,
COOKIES
,
/**
* Include authorization header (if any).
*/
AUTHORIZATION_HEADER
,
/**
/**
* Include errors (if any).
* Include errors (if any).
*/
*/
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -20,9 +20,11 @@ import java.io.IOException;
...
@@ -20,9 +20,11 @@ import java.io.IOException;
import
java.security.Principal
;
import
java.security.Principal
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.HashSet
;
import
java.util.LinkedHashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
javax.servlet.Filter
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterChain
;
...
@@ -49,6 +51,7 @@ import org.springframework.web.filter.OncePerRequestFilter;
...
@@ -49,6 +51,7 @@ import org.springframework.web.filter.OncePerRequestFilter;
* @author Wallace Wadge
* @author Wallace Wadge
* @author Andy Wilkinson
* @author Andy Wilkinson
* @author Venil Noronha
* @author Venil Noronha
* @author Madhura Bhave
*/
*/
public
class
WebRequestTraceFilter
extends
OncePerRequestFilter
implements
Ordered
{
public
class
WebRequestTraceFilter
extends
OncePerRequestFilter
implements
Ordered
{
...
@@ -150,26 +153,40 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
...
@@ -150,26 +153,40 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
private
Map
<
String
,
Object
>
getRequestHeaders
(
HttpServletRequest
request
)
{
private
Map
<
String
,
Object
>
getRequestHeaders
(
HttpServletRequest
request
)
{
Map
<
String
,
Object
>
headers
=
new
LinkedHashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
headers
=
new
LinkedHashMap
<
String
,
Object
>();
Set
<
String
>
excludedHeaders
=
getExcludeHeaders
();
Enumeration
<
String
>
names
=
request
.
getHeaderNames
();
Enumeration
<
String
>
names
=
request
.
getHeaderNames
();
while
(
names
.
hasMoreElements
())
{
while
(
names
.
hasMoreElements
())
{
String
name
=
names
.
nextElement
();
String
name
=
names
.
nextElement
();
List
<
String
>
values
=
Collections
.
list
(
request
.
getHeaders
(
name
));
if
(!
excludedHeaders
.
contains
(
name
.
toLowerCase
()))
{
Object
value
=
values
;
headers
.
put
(
name
,
getHeaderValue
(
request
,
name
));
if
(
values
.
size
()
==
1
)
{
value
=
values
.
get
(
0
);
}
}
else
if
(
values
.
isEmpty
())
{
value
=
""
;
}
headers
.
put
(
name
,
value
);
}
if
(!
isIncluded
(
Include
.
COOKIES
))
{
headers
.
remove
(
"Cookie"
);
}
}
postProcessRequestHeaders
(
headers
);
postProcessRequestHeaders
(
headers
);
return
headers
;
return
headers
;
}
}
private
Set
<
String
>
getExcludeHeaders
()
{
Set
<
String
>
excludedHeaders
=
new
HashSet
<
String
>();
if
(!
isIncluded
(
Include
.
COOKIES
))
{
excludedHeaders
.
add
(
"cookie"
);
}
if
(!
isIncluded
(
Include
.
AUTHORIZATION_HEADER
))
{
excludedHeaders
.
add
(
"authorization"
);
}
return
excludedHeaders
;
}
private
Object
getHeaderValue
(
HttpServletRequest
request
,
String
name
)
{
List
<
String
>
value
=
Collections
.
list
(
request
.
getHeaders
(
name
));
if
(
value
.
size
()
==
1
)
{
return
value
.
get
(
0
);
}
if
(
value
.
isEmpty
())
{
return
""
;
}
return
value
;
}
/**
/**
* Post process request headers before they are added to the trace.
* Post process request headers before they are added to the trace.
* @param headers a mutable map containing the request headers to trace
* @param headers a mutable map containing the request headers to trace
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/WebRequestTraceFilterTests.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -51,6 +51,7 @@ import static org.mockito.Mockito.verify;
...
@@ -51,6 +51,7 @@ import static org.mockito.Mockito.verify;
* @author Andy Wilkinson
* @author Andy Wilkinson
* @author Venil Noronha
* @author Venil Noronha
* @author Stephane Nicoll
* @author Stephane Nicoll
* @author Madhura Bhave
*/
*/
public
class
WebRequestTraceFilterTests
{
public
class
WebRequestTraceFilterTests
{
...
@@ -168,6 +169,49 @@ public class WebRequestTraceFilterTests {
...
@@ -168,6 +169,49 @@ public class WebRequestTraceFilterTests {
assertThat
(
map
.
get
(
"request"
).
toString
()).
isEqualTo
(
"{Accept=application/json}"
);
assertThat
(
map
.
get
(
"request"
).
toString
()).
isEqualTo
(
"{Accept=application/json}"
);
}
}
@Test
@SuppressWarnings
({
"unchecked"
})
public
void
filterDoesNotAddAuthorizationHeaderWithoutAuthorizationHeaderInclude
()
throws
ServletException
,
IOException
{
MockHttpServletRequest
request
=
new
MockHttpServletRequest
(
"GET"
,
"/foo"
);
request
.
addHeader
(
"Authorization"
,
"my-auth-header"
);
MockHttpServletResponse
response
=
new
MockHttpServletResponse
();
this
.
filter
.
doFilterInternal
(
request
,
response
,
new
FilterChain
()
{
@Override
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
)
throws
IOException
,
ServletException
{
}
});
Map
<
String
,
Object
>
info
=
this
.
repository
.
findAll
().
iterator
().
next
().
getInfo
();
Map
<
String
,
Object
>
headers
=
(
Map
<
String
,
Object
>)
info
.
get
(
"headers"
);
assertThat
(((
Map
<
Object
,
Object
>)
headers
.
get
(
"request"
))).
hasSize
(
0
);
}
@Test
@SuppressWarnings
({
"unchecked"
})
public
void
filterAddsAuthorizationHeaderWhenAuthorizationHeaderIncluded
()
throws
ServletException
,
IOException
{
this
.
properties
.
setInclude
(
EnumSet
.
of
(
Include
.
REQUEST_HEADERS
,
Include
.
AUTHORIZATION_HEADER
));
MockHttpServletRequest
request
=
new
MockHttpServletRequest
(
"GET"
,
"/foo"
);
request
.
addHeader
(
"Authorization"
,
"my-auth-header"
);
MockHttpServletResponse
response
=
new
MockHttpServletResponse
();
this
.
filter
.
doFilterInternal
(
request
,
response
,
new
FilterChain
()
{
@Override
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
)
throws
IOException
,
ServletException
{
}
});
Map
<
String
,
Object
>
info
=
this
.
repository
.
findAll
().
iterator
().
next
().
getInfo
();
Map
<
String
,
Object
>
headers
=
(
Map
<
String
,
Object
>)
info
.
get
(
"headers"
);
assertThat
(((
Map
<
Object
,
Object
>)
headers
.
get
(
"request"
)))
.
containsKey
(
"Authorization"
);
}
@Test
@Test
@SuppressWarnings
({
"unchecked"
})
@SuppressWarnings
({
"unchecked"
})
public
void
filterDoesNotAddResponseCookiesWithCookiesExclude
()
public
void
filterDoesNotAddResponseCookiesWithCookiesExclude
()
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/RepositoryRestProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/jest/JestProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/info/ProjectInfoProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2ClientProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/AuthorizationServerProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -46,6 +46,7 @@ import org.springframework.security.oauth2.config.annotation.web.configuration.E
...
@@ -46,6 +46,7 @@ import org.springframework.security.oauth2.config.annotation.web.configuration.E
import
org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer
;
import
org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer
;
import
org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer
;
import
org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer
;
import
org.springframework.security.oauth2.provider.client.BaseClientDetails
;
import
org.springframework.security.oauth2.provider.client.BaseClientDetails
;
import
org.springframework.security.oauth2.provider.token.AccessTokenConverter
;
import
org.springframework.security.oauth2.provider.token.TokenStore
;
import
org.springframework.security.oauth2.provider.token.TokenStore
;
/**
/**
...
@@ -74,15 +75,19 @@ public class OAuth2AuthorizationServerConfiguration
...
@@ -74,15 +75,19 @@ public class OAuth2AuthorizationServerConfiguration
private
final
TokenStore
tokenStore
;
private
final
TokenStore
tokenStore
;
private
final
AccessTokenConverter
tokenConverter
;
private
final
AuthorizationServerProperties
properties
;
private
final
AuthorizationServerProperties
properties
;
public
OAuth2AuthorizationServerConfiguration
(
BaseClientDetails
details
,
public
OAuth2AuthorizationServerConfiguration
(
BaseClientDetails
details
,
AuthenticationManager
authenticationManager
,
AuthenticationManager
authenticationManager
,
ObjectProvider
<
TokenStore
>
tokenStore
,
ObjectProvider
<
TokenStore
>
tokenStore
,
ObjectProvider
<
AccessTokenConverter
>
tokenConverter
,
AuthorizationServerProperties
properties
)
{
AuthorizationServerProperties
properties
)
{
this
.
details
=
details
;
this
.
details
=
details
;
this
.
authenticationManager
=
authenticationManager
;
this
.
authenticationManager
=
authenticationManager
;
this
.
tokenStore
=
tokenStore
.
getIfAvailable
();
this
.
tokenStore
=
tokenStore
.
getIfAvailable
();
this
.
tokenConverter
=
tokenConverter
.
getIfAvailable
();
this
.
properties
=
properties
;
this
.
properties
=
properties
;
}
}
...
@@ -120,6 +125,9 @@ public class OAuth2AuthorizationServerConfiguration
...
@@ -120,6 +125,9 @@ public class OAuth2AuthorizationServerConfiguration
@Override
@Override
public
void
configure
(
AuthorizationServerEndpointsConfigurer
endpoints
)
public
void
configure
(
AuthorizationServerEndpointsConfigurer
endpoints
)
throws
Exception
{
throws
Exception
{
if
(
this
.
tokenConverter
!=
null
)
{
endpoints
.
accessTokenConverter
(
this
.
tokenConverter
);
}
if
(
this
.
tokenStore
!=
null
)
{
if
(
this
.
tokenStore
!=
null
)
{
endpoints
.
tokenStore
(
this
.
tokenStore
);
endpoints
.
tokenStore
(
this
.
tokenStore
);
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ProtectedResourceDetailsConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2SsoProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/SessionProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/LinkedInProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/TwitterProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/TransactionProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webservices/WebServicesProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-samples/spring-boot-sample-simple/src/test/java/sample/simple/SampleSimpleApplicationTests.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/restdocs/RestDocsAutoConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/MockMvcAutoConfiguration.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/orm/jpa/TestDatabaseAutoConfigurationNoEmbeddedTests.java
View file @
89f7ec05
...
@@ -75,8 +75,8 @@ public class TestDatabaseAutoConfigurationNoEmbeddedTests {
...
@@ -75,8 +75,8 @@ public class TestDatabaseAutoConfigurationNoEmbeddedTests {
public
void
applyNoReplace
()
{
public
void
applyNoReplace
()
{
load
(
ExistingDataSourceConfiguration
.
class
,
"spring.test.database.replace=NONE"
);
load
(
ExistingDataSourceConfiguration
.
class
,
"spring.test.database.replace=NONE"
);
assertThat
(
this
.
context
.
getBeansOfType
(
DataSource
.
class
)).
hasSize
(
1
);
assertThat
(
this
.
context
.
getBeansOfType
(
DataSource
.
class
)).
hasSize
(
1
);
assertThat
(
this
.
context
.
getBean
(
DataSource
.
class
))
.
isSameAs
(
assertThat
(
this
.
context
.
getBean
(
DataSource
.
class
))
this
.
context
.
getBean
(
"myCustomDataSource"
));
.
isSameAs
(
this
.
context
.
getBean
(
"myCustomDataSource"
));
}
}
public
void
load
(
Class
<?>
config
,
String
...
environment
)
{
public
void
load
(
Class
<?>
config
,
String
...
environment
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesTests.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BindFailureAnalyzerTests.java
View file @
89f7ec05
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
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