File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1271,7 +1271,8 @@ instance. By default the embedded server will listen for HTTP requests on port `
1271
1271
1272
1272
[[boot-features-embedded-container-servlets-and-filters]]
1273
1273
==== Servlets and Filters
1274
- When using an embedded servlet container you can register Servlets and Filters directly as
1274
+ When using an embedded servlet container you can register Servlets, Filters and all the
1275
+ listeners from the Servlet spec (e.g. `HttpSessionListener`) directly as
1275
1276
Spring beans. This can be particularly convenient if you want to refer to a value from
1276
1277
your `application.properties` during configuration.
1277
1278
@@ -1280,9 +1281,10 @@ the case of multiple Servlet beans the bean name will be used as a path prefix.
1280
1281
will map to `+/*+`.
1281
1282
1282
1283
If convention-based mapping is not flexible enough you can use the
1283
- `ServletRegistrationBean` and `FilterRegistrationBean` classes for complete control. You
1284
- can also register items directly if your bean implements the `ServletContextInitializer`
1285
- interface.
1284
+ `ServletRegistrationBean`, `FilterRegistrationBean` and
1285
+ `ServletListenerRegistrationBean` classes for complete control. You
1286
+ can also register items directly if your bean implements the
1287
+ `ServletContextInitializer` interface.
1286
1288
1287
1289
1288
1290
You can’t perform that action at this time.
0 commit comments