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
38dc9ec4
Commit
38dc9ec4
authored
May 10, 2016
by
Johnny Lim
Committed by
Andy Wilkinson
May 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
c71f5620
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
21 deletions
+19
-21
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+2
-2
MainClassTests.java
.../java/org/springframework/boot/gradle/MainClassTests.java
+1
-1
application.properties
...a-elasticsearch/src/main/resources/application.properties
+1
-1
MockitoTestExecutionListenerTests.java
.../test/mock/mockito/MockitoTestExecutionListenerTests.java
+1
-1
SpyBeanOnTestClassForNewBeanIntegrationTests.java
...mockito/SpyBeanOnTestClassForNewBeanIntegrationTests.java
+1
-1
SpyBeanOnTestFieldForNewBeanIntegrationTests.java
...mockito/SpyBeanOnTestFieldForNewBeanIntegrationTests.java
+1
-1
SpyDefinitionTests.java
...gframework/boot/test/mock/mockito/SpyDefinitionTests.java
+1
-1
JettyEmbeddedServletContainerFactory.java
.../embedded/jetty/JettyEmbeddedServletContainerFactory.java
+1
-1
TomcatEmbeddedServletContainerFactory.java
...mbedded/tomcat/TomcatEmbeddedServletContainerFactory.java
+1
-1
UndertowEmbeddedServletContainer.java
...t/embedded/undertow/UndertowEmbeddedServletContainer.java
+8
-8
UndertowEmbeddedServletContainerFactory.java
...ded/undertow/UndertowEmbeddedServletContainerFactory.java
+1
-1
ConfigFileApplicationListenerTests.java
...ot/context/config/ConfigFileApplicationListenerTests.java
+0
-2
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
38dc9ec4
...
@@ -3297,7 +3297,7 @@ You can inject an auto-configured `ElasticsearchTemplate` or Elasticsearch `Clie
...
@@ -3297,7 +3297,7 @@ You can inject an auto-configured `ElasticsearchTemplate` or Elasticsearch `Clie
instance as you would any other Spring Bean. By default the instance will embed a
instance as you would any other Spring Bean. By default the instance will embed a
local in-memory server (a `Node` in ElasticSearch terms) and use the current working
local in-memory server (a `Node` in ElasticSearch terms) and use the current working
directory as the home directory for the server. In this setup, the first thing to do
directory as the home directory for the server. In this setup, the first thing to do
is to tell ElasticSearch were to store its files:
is to tell ElasticSearch w
h
ere to store its files:
[source,properties,indent=0]
[source,properties,indent=0]
----
----
...
@@ -4401,7 +4401,7 @@ Spring Boot provides Spring Session auto-configuration for a wide range of store
...
@@ -4401,7 +4401,7 @@ Spring Boot provides Spring Session auto-configuration for a wide range of store
* Hazelcast
* Hazelcast
* HashMap
* HashMap
If Spring Session is available, you only need to chose the
If Spring Session is available, you only need to cho
o
se the
{sc-spring-boot-autoconfigure}/session/StoreType.{sc-ext}[`StoreType`] that you wish to
{sc-spring-boot-autoconfigure}/session/StoreType.{sc-ext}[`StoreType`] that you wish to
use to store the sessions. For instance to use Redis as backend store, you'd configure
use to store the sessions. For instance to use Redis as backend store, you'd configure
your application as follows:
your application as follows:
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/MainClassTests.java
View file @
38dc9ec4
...
@@ -26,7 +26,7 @@ import org.junit.Test;
...
@@ -26,7 +26,7 @@ import org.junit.Test;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
/**
* Tests for configuring a project's main class
* Tests for configuring a project's main class
.
*
*
* @author Dave Syer
* @author Dave Syer
* @author Andy Wilkinson
* @author Andy Wilkinson
...
...
spring-boot-samples/spring-boot-sample-data-elasticsearch/src/main/resources/application.properties
View file @
38dc9ec4
#
#
# Home directory of the embedded
elastic
instance. Default to the
# Home directory of the embedded
Elasticsearch
instance. Default to the
# current working directory.
# current working directory.
#
#
spring.data.elasticsearch.properties.path.home
=
target/elastic
spring.data.elasticsearch.properties.path.home
=
target/elastic
...
...
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/Mockito
Initialize
TestExecutionListenerTests.java
→
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockitoTestExecutionListenerTests.java
View file @
38dc9ec4
...
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.verify;
...
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.verify;
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
Mockito
Initialize
TestExecutionListenerTests
{
public
class
MockitoTestExecutionListenerTests
{
private
MockitoTestExecutionListener
listener
=
new
MockitoTestExecutionListener
();
private
MockitoTestExecutionListener
listener
=
new
MockitoTestExecutionListener
();
...
...
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanOnTestClassForNewBeanIntegrationTests.java
View file @
38dc9ec4
...
@@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
...
@@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
verify
;
/**
/**
* Test {@link SpyBean} on a test class can be used to inject new
mock
instances.
* Test {@link SpyBean} on a test class can be used to inject new
spy
instances.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
...
...
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanOnTestFieldForNewBeanIntegrationTests.java
View file @
38dc9ec4
...
@@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
...
@@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
verify
;
/**
/**
* Test {@link SpyBean} on a test class field can be used to inject new
mock
instances.
* Test {@link SpyBean} on a test class field can be used to inject new
spy
instances.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
...
...
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyDefinitionTests.java
View file @
38dc9ec4
...
@@ -40,7 +40,7 @@ public class SpyDefinitionTests {
...
@@ -40,7 +40,7 @@ public class SpyDefinitionTests {
public
ExpectedException
thrown
=
ExpectedException
.
none
();
public
ExpectedException
thrown
=
ExpectedException
.
none
();
@Test
@Test
public
void
C
lassToSpyMustNotBeNull
()
throws
Exception
{
public
void
c
lassToSpyMustNotBeNull
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
expectMessage
(
"ClassToSpy must not be null"
);
this
.
thrown
.
expectMessage
(
"ClassToSpy must not be null"
);
new
SpyDefinition
(
null
,
null
,
null
);
new
SpyDefinition
(
null
,
null
,
null
);
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java
View file @
38dc9ec4
...
@@ -148,7 +148,7 @@ public class JettyEmbeddedServletContainerFactory
...
@@ -148,7 +148,7 @@ public class JettyEmbeddedServletContainerFactory
/**
/**
* Create a new {@link JettyEmbeddedServletContainerFactory} with the specified
* Create a new {@link JettyEmbeddedServletContainerFactory} with the specified
* context path and port.
* context path and port.
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on
* @param port the port to listen on
*/
*/
public
JettyEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
public
JettyEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java
View file @
38dc9ec4
...
@@ -143,7 +143,7 @@ public class TomcatEmbeddedServletContainerFactory
...
@@ -143,7 +143,7 @@ public class TomcatEmbeddedServletContainerFactory
/**
/**
* Create a new {@link TomcatEmbeddedServletContainerFactory} with the specified
* Create a new {@link TomcatEmbeddedServletContainerFactory} with the specified
* context path and port.
* context path and port.
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on
* @param port the port to listen on
*/
*/
public
TomcatEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
public
TomcatEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainer.java
View file @
38dc9ec4
...
@@ -92,7 +92,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -92,7 +92,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on (not used)
* @param port the port to listen on (not used)
* @param autoStart if the server should be started
* @param autoStart if the server should be started
* @param compression compression configuration
* @param compression compression configuration
...
@@ -109,7 +109,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -109,7 +109,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on (not used)
* @param port the port to listen on (not used)
* @param useForwardHeaders if x-forward headers should be used
* @param useForwardHeaders if x-forward headers should be used
* @param autoStart if the server should be started
* @param autoStart if the server should be started
...
@@ -128,12 +128,12 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -128,12 +128,12 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on (not used)
* @param port the port to listen on (not used)
* @param useForwardHeaders if x-forward headers should be used
* @param useForwardHeaders if x-forward headers should be used
* @param autoStart if the server should be started
* @param autoStart if the server should be started
* @param compression compression configuration
* @param compression compression configuration
* @param serverHeader string to be used in
http
header
* @param serverHeader string to be used in
HTTP
header
* @deprecated as of 1.4 in favor of
* @deprecated as of 1.4 in favor of
* {@link #UndertowEmbeddedServletContainer(Builder, DeploymentManager, String, boolean, boolean, Compression, String)}
* {@link #UndertowEmbeddedServletContainer(Builder, DeploymentManager, String, boolean, boolean, Compression, String)}
*/
*/
...
@@ -149,7 +149,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -149,7 +149,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param autoStart if the server should be started
* @param autoStart if the server should be started
* @param compression compression configuration
* @param compression compression configuration
*/
*/
...
@@ -162,7 +162,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -162,7 +162,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param useForwardHeaders if x-forward headers should be used
* @param useForwardHeaders if x-forward headers should be used
* @param autoStart if the server should be started
* @param autoStart if the server should be started
* @param compression compression configuration
* @param compression compression configuration
...
@@ -178,11 +178,11 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
...
@@ -178,11 +178,11 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* Create a new {@link UndertowEmbeddedServletContainer} instance.
* @param builder the builder
* @param builder the builder
* @param manager the deployment manager
* @param manager the deployment manager
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param useForwardHeaders if x-forward headers should be used
* @param useForwardHeaders if x-forward headers should be used
* @param autoStart if the server should be started
* @param autoStart if the server should be started
* @param compression compression configuration
* @param compression compression configuration
* @param serverHeader string to be used in
http
header
* @param serverHeader string to be used in
HTTP
header
*/
*/
public
UndertowEmbeddedServletContainer
(
Builder
builder
,
DeploymentManager
manager
,
public
UndertowEmbeddedServletContainer
(
Builder
builder
,
DeploymentManager
manager
,
String
contextPath
,
boolean
useForwardHeaders
,
boolean
autoStart
,
String
contextPath
,
boolean
useForwardHeaders
,
boolean
autoStart
,
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java
View file @
38dc9ec4
...
@@ -144,7 +144,7 @@ public class UndertowEmbeddedServletContainerFactory
...
@@ -144,7 +144,7 @@ public class UndertowEmbeddedServletContainerFactory
/**
/**
* Create a new {@link UndertowEmbeddedServletContainerFactory} with the specified
* Create a new {@link UndertowEmbeddedServletContainerFactory} with the specified
* context path and port.
* context path and port.
* @param contextPath
root the
context path
* @param contextPath
the root
context path
* @param port the port to listen on
* @param port the port to listen on
*/
*/
public
UndertowEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
public
UndertowEmbeddedServletContainerFactory
(
String
contextPath
,
int
port
)
{
...
...
spring-boot/src/test/java/org/springframework/boot/context/config/ConfigFileApplicationListenerTests.java
View file @
38dc9ec4
...
@@ -376,8 +376,6 @@ public class ConfigFileApplicationListenerTests {
...
@@ -376,8 +376,6 @@ public class ConfigFileApplicationListenerTests {
@Test
@Test
public
void
loadPropertiesThenProfilePropertiesWithOverride
()
throws
Exception
{
public
void
loadPropertiesThenProfilePropertiesWithOverride
()
throws
Exception
{
this
.
environment
.
setActiveProfiles
(
"other"
);
this
.
environment
.
setActiveProfiles
(
"other"
);
// TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
// "spring.profiles.active:other");
this
.
initializer
.
setSearchNames
(
"enableprofile"
);
this
.
initializer
.
setSearchNames
(
"enableprofile"
);
this
.
initializer
.
postProcessEnvironment
(
this
.
environment
,
this
.
application
);
this
.
initializer
.
postProcessEnvironment
(
this
.
environment
,
this
.
application
);
String
property
=
this
.
environment
.
getProperty
(
"other.property"
);
String
property
=
this
.
environment
.
getProperty
(
"other.property"
);
...
...
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