Merge branch '1.1.x'

pull/1510/head
Andy Wilkinson 10 years ago
commit ad8be26efd

@ -989,8 +989,8 @@ support a uniform Java DSL for customizing the error handling. For example:
private static class MyCustomizer implements EmbeddedServletContainerCustomizer { private static class MyCustomizer implements EmbeddedServletContainerCustomizer {
@Override @Override
public void customize(ConfigurableEmbeddedServletContainer factory) { public void customize(ConfigurableEmbeddedServletContainer container) {
factory.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); container.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400"));
} }
} }
@ -1063,8 +1063,8 @@ class for a complete list.
If you need to configure your embdedded servlet container programmatically you can register If you need to configure your embdedded servlet container programmatically you can register
a Spring bean that implements the `EmbeddedServletContainerCustomizer` interface. a Spring bean that implements the `EmbeddedServletContainerCustomizer` interface.
`EmbeddedServletContainerCustomizer` provides access to the `EmbeddedServletContainerCustomizer` provides access to the
`ConfigurableEmbeddedServletContainerFactory` which includes numerous customization `ConfigurableEmbeddedServletContainer` which includes numerous customization setter
setter methods. methods.
[source,java,indent=0] [source,java,indent=0]
---- ----
@ -1085,7 +1085,7 @@ setter methods.
[[boot-features-customizing-configurableembeddedservletcontainerfactory-directly]] [[boot-features-customizing-configurableembeddedservletcontainerfactory-directly]]
===== Customizing ConfigurableEmbeddedServletContainerFactory directly ===== Customizing ConfigurableEmbeddedServletContainer directly
If the above customization techniques are too limited, you can register the If the above customization techniques are too limited, you can register the
`TomcatEmbeddedServletContainerFactory` or `JettyEmbeddedServletContainerFactory` bean `TomcatEmbeddedServletContainerFactory` or `JettyEmbeddedServletContainerFactory` bean
yourself. yourself.

Loading…
Cancel
Save