@@ -998,26 +998,28 @@ You can also use regular Spring MVC features like http://docs.spring.io/spring/d
998998methods] and http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-controller-advice[`@ControllerAdvice`].
999999The `ErrorController` will then pick up any unhandled exceptions.
10001000
1001- N.B. if you register an `ErrorPage` with a path that will end up being handled by a `Filter` (e.g. as is common with some non-Spring web frameworks,
1002- like Jersey and Wicket), then the `Filter` has to be explicitly registered as an `ERROR` dispatcher, e.g.
1001+ N.B. if you register an `ErrorPage` with a path that will end up being handled by a
1002+ `Filter` (e.g. as is common with some non-Spring web frameworks, like Jersey and Wicket),
1003+ then the `Filter` has to be explicitly registered as an `ERROR` dispatcher, e.g.
10031004
10041005[source,java,indent=0,subs="verbatim,quotes,attributes"]
10051006----
1006- @Bean
1007- public FilterRegistrationBean myFilter() {
1007+ @Bean
1008+ public FilterRegistrationBean myFilter() {
10081009
1009- FilterRegistrationBean registration = new FilterRegistrationBean();
1010- registration.setFilter(new MyFilter());
1011- ...
1012- registration.setDispatcherTypes(EnumSet.allOf(DispatcherType.class));
1013- return registration;
1010+ FilterRegistrationBean registration = new FilterRegistrationBean();
1011+ registration.setFilter(new MyFilter());
1012+ ...
1013+ registration.setDispatcherTypes(EnumSet.allOf(DispatcherType.class));
1014+ return registration;
10141015
1015- }
1016+ }
10161017----
10171018
10181019(the default `FilterRegistrationBean` does not include the `ERROR` dispatcher type).
10191020
10201021
1022+
10211023[[boot-features-embedded-container]]
10221024=== Embedded servlet container support
10231025Spring Boot includes support for embedded Tomcat and Jetty servers. Most developers will
0 commit comments