Skip to content

Commit c3c1565

Browse files
author
Dave Syer
committed
Add extra detail on servlet listeners
Fixes spring-projectsgh-2518
1 parent f9816ea commit c3c1565

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ instance. By default the embedded server will listen for HTTP requests on port `
12711271

12721272
[[boot-features-embedded-container-servlets-and-filters]]
12731273
==== 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
12751276
Spring beans. This can be particularly convenient if you want to refer to a value from
12761277
your `application.properties` during configuration.
12771278

@@ -1280,9 +1281,10 @@ the case of multiple Servlet beans the bean name will be used as a path prefix.
12801281
will map to `+/*+`.
12811282

12821283
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.
12861288

12871289

12881290

0 commit comments

Comments
 (0)