konrad-kaminski / spring-kotlin-coroutine

Kotlin coroutine support for Spring.
448 stars 69 forks source link

Too early initialization warning #27

Open x0a1b opened 6 years ago

x0a1b commented 6 years ago

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?