Skip to content

Commit 1422164

Browse files
committed
Polish formatting
1 parent c420249 commit 1422164

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -998,26 +998,28 @@ You can also use regular Spring MVC features like http://docs.spring.io/spring/d
998998
methods] and http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-controller-advice[`@ControllerAdvice`].
999999
The `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
10231025
Spring Boot includes support for embedded Tomcat and Jetty servers. Most developers will

0 commit comments

Comments
 (0)