Hi, I have a problem with spring boot 2.1.6 I trie...
# server
d
Hi, I have a problem with spring boot 2.1.6 I tried to use kotlin bean dsl to declare beans and it works perfectly fine for the core app, but tests are failing (for tests I am using spring-boot-starter-test and kotest). I have read all the information I could find on stackoverflow and made these improvements: 1. Created
Copy code
class BeansInitializer : ApplicationContextInitializer<GenericApplicationContext> {
   override fun initialize(context: GenericApplicationContext) {
       beans().initialize(context)
   }
}
2. Set context.initializer.classes=com.package.BeansInitializer in application.properties It helped a little bit, now some of the beans are created, but all beans with @ConfigurationsProperties are still not created.
k
maybe you will have more luck at #spring
👍 1