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

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

Closed
spring-projects-issues opened this issue Oct 2, 2017 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants