• Andy Wilkinson's avatar
    Only enable full path optimization when there's one DispatcherServlet · 1270af90
    Andy Wilkinson authored
    Previously, UrlPathHelper's full path optimization was enabled when
    there was a dispatcher servlet mapped to /. The UrlPathHelper is used
    across Spring MVC and if there are multiple dispatcher servlets they
    all share the sample UrlPathHelper. This meant that any additional
    dispatcher servlets mapping to locations other than / would not be able
    to map requests correctly as the UrlPathHelper would use the full path,
    ignoring the url mapping of the dispatcher servlet.
    
    This commit updates the MVC auto-configuration so that use of the full
    path is only enabled if there's a single dispatcher servlet
    registration.
    
    Fixes gh-22682
    1270af90
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...