Skip to content

Stop registering the default servlet by default #22915

@philwebb

Description

@philwebb

The DefaultServlet is registered by default and mapped to / but in the vast majority of Boot apps this is overridden by the DispatcherServlet which is also mapped to /. When overridden like this the registration is pointless as the servlet will never be used. To avoid wasting memory and CPU cycles, we should change the default of server.servlet.register-default-servlet to false and document that you can set it to true to reinstate the previous behaviour in apps that were using it.

Metadata

Metadata

Assignees

Labels

status: noteworthyA noteworthy issue to call out in the release notestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions