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
61f7bd85
Commit
61f7bd85
authored
Jan 30, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
f86b44f2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
28 deletions
+25
-28
ManagementWebSecurityAutoConfiguration.java
...autoconfigure/ManagementWebSecurityAutoConfiguration.java
+1
-1
OAuth2RestOperationsConfiguration.java
...rity/oauth2/client/OAuth2RestOperationsConfiguration.java
+2
-2
OAuth2RestOperationsConfigurationTests.java
...oauth2/client/OAuth2RestOperationsConfigurationTests.java
+8
-9
SysVinitLaunchScriptIT.java
...ngframework/boot/launchscript/SysVinitLaunchScriptIT.java
+1
-1
TypeUtils.java
...pringframework/boot/configurationprocessor/TypeUtils.java
+6
-8
DatabaseDriver.java
...in/java/org/springframework/boot/jdbc/DatabaseDriver.java
+2
-3
RestTemplateBuilder.java
.../springframework/boot/web/client/RestTemplateBuilder.java
+4
-3
JettyEmbeddedServletContainerFactoryTests.java
...dded/jetty/JettyEmbeddedServletContainerFactoryTests.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -87,7 +87,7 @@ public class OAuth2RestOperationsConfiguration {
@Configuration
@ConditionalOnBean
(
OAuth2ClientConfiguration
.
class
)
@Conditional
({
OAuth2ClientIdCondition
.
class
,
NoClientCredentialsCondition
.
class
})
@Conditional
({
OAuth2ClientIdCondition
.
class
,
NoClientCredentialsCondition
.
class
})
@Import
(
OAuth2ProtectedResourceDetailsConfiguration
.
class
)
protected
static
class
SessionScopedConfiguration
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfigurationTests.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -78,8 +78,7 @@ public class OAuth2RestOperationsConfigurationTests {
EnvironmentTestUtils
.
addEnvironment
(
this
.
environment
,
"security.oauth2.client.client-id=acme"
);
initializeContext
(
ConfigForRequestScopedConfiguration
.
class
,
false
);
assertThat
(
this
.
context
.
containsBean
(
"oauth2ClientContext"
))
.
isTrue
();
assertThat
(
this
.
context
.
containsBean
(
"oauth2ClientContext"
)).
isTrue
();
}
@Test
...
...
@@ -95,8 +94,7 @@ public class OAuth2RestOperationsConfigurationTests {
EnvironmentTestUtils
.
addEnvironment
(
this
.
environment
,
"security.oauth2.client.client-id=acme"
);
initializeContext
(
ConfigForSessionScopedConfiguration
.
class
,
false
);
assertThat
(
this
.
context
.
containsBean
(
"oauth2ClientContext"
))
.
isTrue
();
assertThat
(
this
.
context
.
containsBean
(
"oauth2ClientContext"
)).
isTrue
();
}
@Test
...
...
@@ -109,8 +107,7 @@ public class OAuth2RestOperationsConfigurationTests {
private
void
initializeContext
(
Class
<?>
configuration
,
boolean
isClientCredentials
)
{
this
.
context
=
new
SpringApplicationBuilder
(
configuration
)
.
environment
(
this
.
environment
)
.
web
(!
isClientCredentials
).
run
();
.
environment
(
this
.
environment
).
web
(!
isClientCredentials
).
run
();
}
@Configuration
...
...
@@ -126,7 +123,8 @@ public class OAuth2RestOperationsConfigurationTests {
@Configuration
@Import
({
OAuth2ClientConfiguration
.
class
,
OAuth2RestOperationsConfiguration
.
class
})
protected
static
class
ConfigForSessionScopedConfiguration
extends
WebApplicationConfiguration
{
protected
static
class
ConfigForSessionScopedConfiguration
extends
WebApplicationConfiguration
{
@Bean
public
SecurityProperties
securityProperties
()
{
...
...
@@ -136,7 +134,8 @@ public class OAuth2RestOperationsConfigurationTests {
}
@Configuration
protected
static
class
ConfigForRequestScopedConfiguration
extends
WebApplicationConfiguration
{
protected
static
class
ConfigForRequestScopedConfiguration
extends
WebApplicationConfiguration
{
}
...
...
spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
View file @
61f7bd85
...
...
@@ -188,17 +188,15 @@ class TypeUtils {
+
type
.
asElement
().
getSimpleName
().
toString
();
}
String
qualifiedName
=
getQualifiedName
(
type
.
asElement
());
if
(
type
.
getTypeArguments
().
isEmpty
())
{
if
(
type
.
getTypeArguments
().
isEmpty
())
{
return
qualifiedName
;
}
else
{
StringBuilder
name
=
new
StringBuilder
();
name
.
append
(
qualifiedName
);
if
(!
type
.
getTypeArguments
().
isEmpty
())
{
appendTypeArguments
(
type
,
name
);
}
return
name
.
toString
();
StringBuilder
name
=
new
StringBuilder
();
name
.
append
(
qualifiedName
);
if
(!
type
.
getTypeArguments
().
isEmpty
())
{
appendTypeArguments
(
type
,
name
);
}
return
name
.
toString
();
}
private
void
appendTypeArguments
(
DeclaredType
type
,
StringBuilder
name
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -123,8 +123,7 @@ public enum DatabaseDriver {
* Firebird.
*/
FIREBIRD
(
"Firebird"
,
"org.firebirdsql.jdbc.FBDriver"
,
"org.firebirdsql.ds.FBXADataSource"
,
"SELECT 1 FROM RDB$DATABASE"
)
{
"org.firebirdsql.ds.FBXADataSource"
,
"SELECT 1 FROM RDB$DATABASE"
)
{
@Override
protected
Collection
<
String
>
getUrlPrefixes
()
{
...
...
spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java
View file @
61f7bd85
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -337,8 +337,9 @@ public class RestTemplateBuilder {
/**
* Set the {@link ClientHttpRequestFactory} that should be used with the
* {@link RestTemplate}.
* <p>Note that this request factory will be shared with all builder instances
* derived from that point.
* <p>
* Note that this request factory will be shared with all builder instances derived
* from that point.
* @param requestFactory the request factory to use
* @return a new builder instance
*/
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java
View file @
61f7bd85
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
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