@@ -998,26 +998,28 @@ You can also use regular Spring MVC features like http://docs.spring.io/spring/d
998
998
methods] and http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-controller-advice[`@ControllerAdvice`].
999
999
The `ErrorController` will then pick up any unhandled exceptions.
1000
1000
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.
1003
1004
1004
1005
[source,java,indent=0,subs="verbatim,quotes,attributes"]
1005
1006
----
1006
- @Bean
1007
- public FilterRegistrationBean myFilter() {
1007
+ @Bean
1008
+ public FilterRegistrationBean myFilter() {
1008
1009
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;
1014
1015
1015
- }
1016
+ }
1016
1017
----
1017
1018
1018
1019
(the default `FilterRegistrationBean` does not include the `ERROR` dispatcher type).
1019
1020
1020
1021
1022
+
1021
1023
[[boot-features-embedded-container]]
1022
1024
=== Embedded servlet container support
1023
1025
Spring Boot includes support for embedded Tomcat and Jetty servers. Most developers will
0 commit comments