mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-12-26 10:04:08 +00:00
Restore Check for DispatcherServlet on Classpath
Closes gh-18315
This commit is contained in:
parent
29ad1e6b07
commit
0155d4a345
@ -42,7 +42,8 @@ final class MethodSecuritySelector implements ImportSelector {
|
||||
.isPresent("org.springframework.security.data.aot.hint.AuthorizeReturnObjectDataHintsRegistrar", null);
|
||||
|
||||
private static final boolean isWebPresent = ClassUtils
|
||||
.isPresent("org.springframework.security.web.util.ThrowableAnalyzer", null);
|
||||
.isPresent("org.springframework.web.servlet.DispatcherServlet", null)
|
||||
&& ClassUtils.isPresent("org.springframework.security.web.util.ThrowableAnalyzer", null);
|
||||
|
||||
private static final boolean isObservabilityPresent = ClassUtils
|
||||
.isPresent("io.micrometer.observation.ObservationRegistry", null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user