mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
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:
parent
2deb722a1f
commit
f8bfe19a98
@ -400,7 +400,7 @@ public class GlobalMethodSecurityConfiguration
|
|||||||
public void setMethodSecurityExpressionHandler(
|
public void setMethodSecurityExpressionHandler(
|
||||||
List<MethodSecurityExpressionHandler> handlers) {
|
List<MethodSecurityExpressionHandler> handlers) {
|
||||||
if (handlers.size() != 1) {
|
if (handlers.size() != 1) {
|
||||||
logger.debug("Not autwiring PermissionEvaluator since size != 1. Got "
|
logger.debug("Not autowiring MethodSecurityExpressionHandler since size != 1. Got "
|
||||||
+ handlers);
|
+ handlers);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -449,4 +449,4 @@ public class GlobalMethodSecurityConfiguration
|
|||||||
}
|
}
|
||||||
return this.enableMethodSecurity;
|
return this.enableMethodSecurity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user