At present, both Spring MVC and Spring WebFlux auto-configurations hardcode path pattern for WebJars resource handlers to /webjars/** which means users are unable to change the path.
This commit introduces spring.mvc.webjars-path-pattern and spring.webflux.webjars-path-pattern configuration properties that allow customization of WebJars resource handler path pattern.
The background of the proposal is that using /webjars/** in path is somewhat leaky as it tells details about the tech stack. For that reason I usually prefer mapping WebJars to a more generic path, like /assets/**. Ideally, the default should also be a generic one but I'm not sure if that's a welcome change so it's probably one of the topics for team to discuss.