mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
We need to ensure that MockMvcAutoConfiguration has defined its DispatcherServletPath bean before the condition that checks for it in ServletWebSecurityAutoConfiguration is evaluated. Ideally, ServletWebSecurityAutoConfiguration in spring-boot-security would not know about test-specific code but there's no easy way to establish the required ordering without this link. One alternative option is an auto-configuration class in spring-boot-security-test that's purely for ordering purposes. This was rejected as it would introduce new public API (as we enforce that all auto-configurations are public). Fixes gh-49854