Skip to content

resourceHandlerMapping should be registered with shared HandlerInterceptor [SPR-16034] #20583

@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-16034 and commented

In WebMvcConfigurationSupport, the resource HandlerMapping is only registered with the ResourceUrlProviderExposingInterceptor and does not leverage the set of configured interceptors.

Even if ResourceUrlProviderExposingInterceptor might be enough for most use cases when serving static resources, registering additional interceptors can be useful for other use cases like metrics.


Reference URL: spring-projects/spring-boot#10335

Referenced from: commits 1356bd4

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions