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
ec9f0ab6
Commit
ec9f0ab6
authored
Nov 05, 2016
by
Johnny Lim
Committed by
Stephane Nicoll
Nov 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-7322
parent
1bd53ea9
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 @
ec9f0ab6
...
...
@@ -3117,7 +3117,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
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"]
----
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
ec9f0ab6
...
...
@@ -4550,11 +4550,11 @@ There are three main approaches to `RestTemplate` customization, depending on ho
you want the customizations to apply.
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
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
`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 @
ec9f0ab6
...
...
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import
static
org
.
junit
.
Assert
.
fail
;
/**
* Tests for {@link BeanCurrentlyInCreationFailureAnalyzer}
* Tests for {@link BeanCurrentlyInCreationFailureAnalyzer}
.
*
* @author Andy Wilkinson
*/
...
...
@@ -66,14 +66,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
assertThat
(
lines
.
get
(
7
)).
startsWith
(
"| three defined in "
+
CyclicBeanMethodsConfiguration
.
class
.
getName
());
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
...
...
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