Skip to content

Configure ServletContext before triggering initialization of ServletContextInitializer beans #10699

@wilkinsona

Description

@wilkinsona

We currently configure the ServletContext (init parameters and session cookie configuration) using a pair of ServletContextInitializer beans. We also use ServletContextInitializer beans to register filters and servlets with the container. This means any configuration classes that produce Filter, Servlet, FilterRegistrationBean, ServletRegistrationBean beans are initialized before the init parameters and session cookie configuration has been applied to the ServletContext.

We could, perhaps, resolve this problem by using something other than a ServletContextInitializer to configure the init parameters and session cooke configuration on the servlet context.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions