Merge branch '1.5.x'

This commit is contained in:
Stephane Nicoll
2016-11-05 07:44:48 +01:00
3 changed files with 4 additions and 12 deletions

View File

@@ -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
need to share the customizations of the builder in a method that is both available to the
`ServletInitializr` callback and the `main` method, something like:
`SpringBootServletInitializer` callback and the `main` method, something like:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
----

View File

@@ -4464,11 +4464,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 calls 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 an 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.