In my case, Spring couldn't create a Bean written in Kotlin implementing an interface written in Java. When I rewrote the interface from Java to Kotlin, the error disappeared.
Bean
Kotlin
interface
Java