Lucas
10/22/2017, 11:59 PM@Repository in a bean defined using the beans {} function?
For example, the code below throws an BeanCreationException because PersonRepository is an interface, but if it's a concrete class it works fine.
fun beans() = beans {
bean<PersonRepository>() // throws BeanCreationException
bean<PersonHandler>()
}
@Repository
interface PersonRepository : ReactiveCrudRepository<Person, String>
class PersonHandler(private val repository: PersonRepository)