If you just need to access the repository in a bea...
# spring
t
If you just need to access the repository in a bean you can use something like:
Copy code
@Bean
    fun myCustomBean(myRepository: MyRepository): InitializingBean {
        return InitializingBean {
            // ...
        }
    }