mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-06 18:52:13 +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());
|
.getAnnotationAttributes(EnableWebSecurity.class.getName());
|
||||||
AnnotationAttributes enableWebSecurityAttrs = AnnotationAttributes
|
AnnotationAttributes enableWebSecurityAttrs = AnnotationAttributes
|
||||||
.fromMap(enableWebSecurityAttrMap);
|
.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");
|
debugEnabled = enableWebSecurityAttrs.getBoolean("debug");
|
||||||
if (webSecurity != null) {
|
if (webSecurity != null) {
|
||||||
webSecurity.debug(debugEnabled);
|
webSecurity.debug(debugEnabled);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user