mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-05 18:22:26 +00:00
Remove SPR-11251 workaround from WebSecurityConfiguration
Fixes gh-3348
This commit is contained in:
parent
be36ddb614
commit
5d6e8bc3c8
@ -206,23 +206,6 @@ public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAwa
|
||||
.getAnnotationAttributes(EnableWebSecurity.class.getName());
|
||||
AnnotationAttributes enableWebSecurityAttrs = AnnotationAttributes
|
||||
.fromMap(enableWebSecurityAttrMap);
|
||||
if (enableWebSecurityAttrs == null) {
|
||||
// search parent classes
|
||||
Class<?> currentClass = ClassUtils.resolveClassName(
|
||||
importMetadata.getClassName(), beanClassLoader);
|
||||
for (Class<?> classToInspect = currentClass; classToInspect != null; classToInspect = classToInspect
|
||||
.getSuperclass()) {
|
||||
EnableWebSecurity enableWebSecurityAnnotation = AnnotationUtils
|
||||
.findAnnotation(classToInspect, EnableWebSecurity.class);
|
||||
if (enableWebSecurityAnnotation == null) {
|
||||
continue;
|
||||
}
|
||||
enableWebSecurityAttrMap = AnnotationUtils
|
||||
.getAnnotationAttributes(enableWebSecurityAnnotation);
|
||||
enableWebSecurityAttrs = AnnotationAttributes
|
||||
.fromMap(enableWebSecurityAttrMap);
|
||||
}
|
||||
}
|
||||
debugEnabled = enableWebSecurityAttrs.getBoolean("debug");
|
||||
if (webSecurity != null) {
|
||||
webSecurity.debug(debugEnabled);
|
||||
|
Loading…
x
Reference in New Issue
Block a user