mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-30 14:13:32 +00:00
Previously wiring dependencies created with a FactoryBean into MethodSecurityExpressionHandler & MethodSecurityExpressionHandler.expressionParser and would cause NoSuchBeanDefinitionException's to occur. These changes make it easier (but not impossible) to avoid such errors. The following changes were made: - ExpressionBasedAnnotationAttributeFactory delays the invocation of MethodSecurityExpressionHandler.getExpressionParser() - MethodSecurityExpressionHandler is automatically wrapped in a LazyInitTargetSource and marked as lazyInit=true