spring-kotlin-coroutine
spring-kotlin-coroutine copied to clipboard
Too early initialization warning
So after following the instructions described in README.md
running server logs a warning:
WARN - o.s.c.a.ConfigurationClassPostProcessor Cannot enhance @Configuration bean definition 'org.springframework.kotlin.experimental.coroutine.cache.CoroutineCacheConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
Why is this happening? What is the recommended way to fix it?