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
Brian Clozel opened SPR-16034 and commented
In
WebMvcConfigurationSupport, the resourceHandlerMappingis only registered with theResourceUrlProviderExposingInterceptorand does not leverage the set of configured interceptors.Even if
ResourceUrlProviderExposingInterceptormight 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