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
389acb09
Commit
389acb09
authored
Nov 05, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
6c763536
44a32d0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+2
-2
BeanCurrentlyInCreationFailureAnalyzerTests.java
...analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java
+1
-9
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
389acb09
...
@@ -3079,7 +3079,7 @@ Once the war is working we make it executable by adding a `main` method to our
...
@@ -3079,7 +3079,7 @@ Once the war is working we make it executable by adding a `main` method to our
====
====
If you intend to start your application as a war or as an executable application, you
If you intend to start your application as a war or as an executable application, you
need to share the customizations of the builder in a method that is both available to the
need to share the customizations of the builder in a method that is both available to the
`S
ervletInitializ
r` callback and the `main` method, something like:
`S
pringBootServletInitialize
r` callback and the `main` method, something like:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
[source,java,indent=0,subs="verbatim,quotes,attributes"]
----
----
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
389acb09
...
@@ -4494,11 +4494,11 @@ There are three main approaches to `RestTemplate` customization, depending on ho
...
@@ -4494,11 +4494,11 @@ There are three main approaches to `RestTemplate` customization, depending on ho
you want the customizations to apply.
you want the customizations to apply.
To make the scope of any customizations as narrow as possible, inject the auto-configured
To make the scope of any customizations as narrow as possible, inject the auto-configured
`RestTemplateBuilder` and then call
s
its methods as required. Each method call returns a
`RestTemplateBuilder` and then call its methods as required. Each method call returns a
new `RestTemplateBuilder` instance so the customizations will only affect this use of
new `RestTemplateBuilder` instance so the customizations will only affect this use of
the builder.
the builder.
To make a application-wide, additive customization a `RestTemplateCustomizer` bean can be
To make a
n
application-wide, additive customization a `RestTemplateCustomizer` bean can be
used. All such beans are automatically registered with the auto-configured
used. All such beans are automatically registered with the auto-configured
`RestTemplateBuilder` and will be applied to any templates that are built with it.
`RestTemplateBuilder` and will be applied to any templates that are built with it.
...
...
spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java
View file @
389acb09
...
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
...
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
/**
/**
* Tests for {@link BeanCurrentlyInCreationFailureAnalyzer}
* Tests for {@link BeanCurrentlyInCreationFailureAnalyzer}
.
*
*
* @author Andy Wilkinson
* @author Andy Wilkinson
*/
*/
...
@@ -66,14 +66,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
...
@@ -66,14 +66,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
assertThat
(
lines
.
get
(
7
)).
startsWith
(
assertThat
(
lines
.
get
(
7
)).
startsWith
(
"| three defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
"| three defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
assertThat
(
lines
.
get
(
8
)).
isEqualTo
(
"└─────┘"
);
assertThat
(
lines
.
get
(
8
)).
isEqualTo
(
"└─────┘"
);
assertThat
(
analysis
.
getDescription
()).
startsWith
(
"The dependencies of some of the beans in the application context form a cycle:"
);
assertThat
(
analysis
.
getDescription
()).
contains
(
"one defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
assertThat
(
analysis
.
getDescription
()).
contains
(
"two defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
assertThat
(
analysis
.
getDescription
()).
contains
(
"three defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
}
}
@Test
@Test
...
...
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