spring-kotlin-coroutine icon indicating copy to clipboard operation
spring-kotlin-coroutine copied to clipboard

Too early initialization warning

Open x0a1b opened this issue 6 years ago • 0 comments

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?

x0a1b avatar Aug 07 '18 16:08 x0a1b