Fix typo in autowiring warning (#4026)
Fixes a misleading message that warns about PermissionEvaluator when MethodSecurityExpressionHandler should be mentioned instead. Fixes gh-3402
This commit is contained in:
+2
-2
@@ -400,7 +400,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
public void setMethodSecurityExpressionHandler(
|
||||
List<MethodSecurityExpressionHandler> handlers) {
|
||||
if (handlers.size() != 1) {
|
||||
logger.debug("Not autwiring PermissionEvaluator since size != 1. Got "
|
||||
logger.debug("Not autowiring MethodSecurityExpressionHandler since size != 1. Got "
|
||||
+ handlers);
|
||||
return;
|
||||
}
|
||||
@@ -449,4 +449,4 @@ public class GlobalMethodSecurityConfiguration
|
||||
}
|
||||
return this.enableMethodSecurity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user