aleksandrsl
02/09/2018, 1:04 PMBeanFactory has not been injected into @Configuration class when all beans are declared this way:
@get: Bean
val securityEvaluationContextExtensionProvider = SecurityEvaluationContextExtension()
but when at least one bean is declared the normal way
@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