<Failing to instantiate spring bean properties via...
# stackoverflow
u
Failing to instantiate spring bean properties via using kotlin open class constructor open class XService( // this is open because spring-cglib val yService: YService ) { fun doX() { yService.doY() } } interface YService { //method definitions } As you see from the above XService depends on YService interface. I am trying to instantiate two different beans by supplying two different implementations of YService interface, let's say AService:YService and BService:YService. @Configuration class SomeBeans{ @Bean fun...