``` @Configuration @ConfigurationProperties(prefix...
# spring
x
Copy code
@Configuration
@ConfigurationProperties(prefix = "schedule")
open class ScheduleProperies {

    var periodicDump: DumpSchedule? = null
    
    
    open class DumpSchedule {
        /**
         * in seconds
         */
        var interval: Int? = null
        /**
         * in seconds
         */
        var offset: Long? = null
    }
}
is it possible to make a Bean out of
DumpSchedule
?
s
try replacing the property with a config-method:
Copy code
@Bean
    dumpSchedule() = DumpSchedule()
in
ScheduleProperties