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
40800355
Commit
40800355
authored
May 30, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
463e11ab
587df6a0
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
21 deletions
+30
-21
OnExpressionCondition.java
...k/boot/autoconfigure/condition/OnExpressionCondition.java
+2
-4
pom.xml
spring-boot-project/spring-boot-parent/pom.xml
+1
-6
SinglePublishedArtifact.java
...framework/boot/gradle/plugin/SinglePublishedArtifact.java
+1
-1
TomcatServletWebServerFactory.java
...ot/web/embedded/tomcat/TomcatServletWebServerFactory.java
+4
-0
TomcatServletWebServerFactoryTests.java
...b/embedded/tomcat/TomcatServletWebServerFactoryTests.java
+11
-0
pom.xml
spring-boot-samples/pom.xml
+1
-1
pom.xml
spring-boot-samples/spring-boot-sample-ant/pom.xml
+3
-2
SampleAtmosphereApplicationTests.java
...a/sample/atmosphere/SampleAtmosphereApplicationTests.java
+1
-1
MessageController.java
...junit-jupiter/src/main/java/sample/MessageController.java
+1
-1
CustomContainerWebSocketsApplicationTests.java
...jetty/echo/CustomContainerWebSocketsApplicationTests.java
+1
-1
SampleWebSocketsApplicationTests.java
...es/websocket/tomcat/SampleWebSocketsApplicationTests.java
+1
-1
CustomContainerWebSocketsApplicationTests.java
...omcat/echo/CustomContainerWebSocketsApplicationTests.java
+1
-1
SampleWebSocketsApplicationTests.java
.../websocket/undertow/SampleWebSocketsApplicationTests.java
+1
-1
CustomContainerWebSocketsApplicationTests.java
...ertow/echo/CustomContainerWebSocketsApplicationTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java
View file @
40800355
...
...
@@ -51,10 +51,8 @@ class OnExpressionCondition extends SpringBootCondition {
boolean
result
=
evaluateExpression
(
beanFactory
,
expression
);
return
new
ConditionOutcome
(
result
,
messageBuilder
.
resultedIn
(
result
));
}
else
{
return
ConditionOutcome
.
noMatch
(
messageBuilder
.
because
(
"no BeanFactory available."
));
}
return
ConditionOutcome
.
noMatch
(
messageBuilder
.
because
(
"no BeanFactory available."
));
}
private
Boolean
evaluateExpression
(
ConfigurableListableBeanFactory
beanFactory
,
...
...
spring-boot-project/spring-boot-parent/pom.xml
View file @
40800355
...
...
@@ -26,7 +26,7 @@
<aether.version>
1.0.2.v20150114
</aether.version>
<maven.version>
3.1.1
</maven.version>
<spock.version>
1.0-groovy-2.4
</spock.version>
<spring-javaformat.version>
0.0.
1
</spring-javaformat.version>
<spring-javaformat.version>
0.0.
2
</spring-javaformat.version>
</properties>
<scm>
<url>
http://github.com/spring-projects/spring-boot
</url>
...
...
@@ -578,11 +578,6 @@
<groupId>
io.spring.javaformat
</groupId>
<artifactId>
spring-javaformat-maven-plugin
</artifactId>
<version>
${spring-javaformat.version}
</version>
<configuration>
<excludes>
<exclude>
**/HelpMojo.java
</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>
validate
</phase>
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SinglePublishedArtifact.java
View file @
40800355
/*
* 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-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java
View file @
40800355
...
...
@@ -354,6 +354,10 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
private
void
configureSession
(
Context
context
)
{
long
sessionTimeout
=
getSessionTimeoutInMinutes
();
context
.
setSessionTimeout
((
int
)
sessionTimeout
);
Boolean
httpOnly
=
getSession
().
getCookie
().
getHttpOnly
();
if
(
httpOnly
!=
null
)
{
context
.
setUseHttpOnly
(
httpOnly
);
}
if
(
getSession
().
isPersistent
())
{
Manager
manager
=
context
.
getManager
();
if
(
manager
==
null
)
{
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java
View file @
40800355
...
...
@@ -420,6 +420,17 @@ public class TomcatServletWebServerFactoryTests
assertThat
(
tldSkipSet
).
contains
(
"foo.jar"
,
"bar.jar"
);
}
@Test
public
void
customTomcatHttpOnlyCookie
()
{
TomcatServletWebServerFactory
factory
=
getFactory
();
factory
.
getSession
().
getCookie
().
setHttpOnly
(
false
);
this
.
webServer
=
factory
.
getWebServer
();
this
.
webServer
.
start
();
Tomcat
tomcat
=
((
TomcatWebServer
)
this
.
webServer
).
getTomcat
();
Context
context
=
(
Context
)
tomcat
.
getHost
().
findChildren
()[
0
];
assertThat
(
context
.
getUseHttpOnly
()).
isFalse
();
}
@Override
protected
JspServlet
getJspServlet
()
throws
ServletException
{
Tomcat
tomcat
=
((
TomcatWebServer
)
this
.
webServer
).
getTomcat
();
...
...
spring-boot-samples/pom.xml
View file @
40800355
...
...
@@ -15,7 +15,7 @@
<properties>
<main.basedir>
${basedir}/..
</main.basedir>
<java.version>
1.8
</java.version>
<spring-javaformat.version>
0.0.
1
</spring-javaformat.version>
<spring-javaformat.version>
0.0.
2
</spring-javaformat.version>
</properties>
<modules>
<module>
spring-boot-sample-ant
</module>
...
...
spring-boot-samples/spring-boot-sample-ant/pom.xml
View file @
40800355
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<!-- This POM is just to trigger the Ant/Ivy sample from Maven and to test -->
<modelVersion>
4.0.0
</modelVersion>
...
...
@@ -103,4 +104,4 @@
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
</project>
spring-boot-samples/spring-boot-sample-atmosphere/src/test/java/sample/atmosphere/SampleAtmosphereApplicationTests.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-junit-jupiter/src/main/java/sample/MessageController.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-websocket-jetty/src/test/java/samples/websocket/jetty/echo/CustomContainerWebSocketsApplicationTests.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-websocket-tomcat/src/test/java/samples/websocket/tomcat/SampleWebSocketsApplicationTests.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-websocket-tomcat/src/test/java/samples/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-websocket-undertow/src/test/java/samples/websocket/undertow/SampleWebSocketsApplicationTests.java
View file @
40800355
/*
* 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-samples/spring-boot-sample-websocket-undertow/src/test/java/samples/websocket/undertow/echo/CustomContainerWebSocketsApplicationTests.java
View file @
40800355
/*
* 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