Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow changing mappings of auto-configured Servlet filters #31237

Open
vpavic opened this issue Jun 2, 2022 · 0 comments
Open

Allow changing mappings of auto-configured Servlet filters #31237

vpavic opened this issue Jun 2, 2022 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@vpavic
Copy link
Contributor

vpavic commented Jun 2, 2022

Spring Boot auto-configures several Servlet filters (various Spring MVC related filters, Spring Security, and so on) an maps them to /** (see AbstractFilterRegistrationBean#DEFAULT_URL_MAPPINGS) but to my knowledge doesn't allow to customize the mappings.

In one recent project we wanted to add an additional Servlet to handle some specific requests, but didn't want to have all the auto-configured filters applied to it. This was a challenge because apparently there's no easy way to change the mappings of auto-configured filters.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 2, 2022
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 7, 2022
@philwebb philwebb added this to the General Backlog milestone Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants