mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
typo fitler -> filter
This commit is contained in:
parent
e7880b1815
commit
6e2e8c41b5
@ -71,7 +71,7 @@ final class SecurityMockMvcConfigurer extends MockMvcConfigurerAdapter {
|
|||||||
WebApplicationContext context) {
|
WebApplicationContext context) {
|
||||||
String securityBeanId = BeanIds.SPRING_SECURITY_FILTER_CHAIN;
|
String securityBeanId = BeanIds.SPRING_SECURITY_FILTER_CHAIN;
|
||||||
if (getSpringSecurityFilterChain() == null && context.containsBean(securityBeanId)) {
|
if (getSpringSecurityFilterChain() == null && context.containsBean(securityBeanId)) {
|
||||||
setSpringSecurityFitlerChain(context.getBean(securityBeanId, Filter.class));
|
setSpringSecurityFilterChain(context.getBean(securityBeanId, Filter.class));
|
||||||
}
|
}
|
||||||
Assert.state(getSpringSecurityFilterChain() != null,
|
Assert.state(getSpringSecurityFilterChain() != null,
|
||||||
() -> "springSecurityFilterChain cannot be null. Ensure a Bean with the name " + securityBeanId
|
() -> "springSecurityFilterChain cannot be null. Ensure a Bean with the name " + securityBeanId
|
||||||
@ -81,7 +81,7 @@ final class SecurityMockMvcConfigurer extends MockMvcConfigurerAdapter {
|
|||||||
return testSecurityContext();
|
return testSecurityContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSpringSecurityFitlerChain(Filter filter) {
|
private void setSpringSecurityFilterChain(Filter filter) {
|
||||||
this.delegateFilter.setDelegate(filter);
|
this.delegateFilter.setDelegate(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user