DosExe
08/25/2020, 3:57 PMclass 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.thanksforallthefish
08/26/2020, 6:38 AM@ConfigurationProperties
needs to an @Component
or being declared in an @EnableConfigurationProperties(MyProperty)
(don’t remember the syntax by heart). What is the equivalent with the dsl and are you sure the class enabling properties is picked by your tests?
also, SpringBoot 2.1 is pretty old, lots of kotlin support was added in 2.2, consider upgrading if manageableDosExe
08/26/2020, 6:40 AMDosExe
08/26/2020, 6:41 AM