Hi! I get error `BeanFactory has not been injected...
# spring
a
Hi! I get error
BeanFactory has not been injected into @Configuration class
when all beans are declared this way:
Copy code
@get: Bean
val securityEvaluationContextExtensionProvider = SecurityEvaluationContextExtension()
but when at least one bean is declared the normal way
Copy code
@Bean
fun authenticationProvider(): DaoAuthenticationProvider = DaoAuthenticationProvider().apply {
    setUserDetailsService(userDetailsServiceProvider)
}
all works perfect. Is it a bug or I have to inject
BeanFactory
manually? I'm using Spring-Boot 2.0.0.RC1
232 Views