org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor class parses durations from fields fixedDelayString, fixedRateString and initialDelayString with it's own conversion method org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor#processScheduled.

How about to use org.springframework.boot.convert.StringToDurationConverter (and other converters) to support org.springframework.boot.convert.DurationStyle#SIMPLE? It would be great if I can set initial delay (and also other delays) in my bootstrap.yaml with something like 10s.

Comment From: rstoyanchev

This is a converter in Spring Boot that we cannot use in the Spring Framework, and it gets the style from a @DurationFormat annotation on the target type, which in this case doesn't work because there is only an annotation attribute to work with. In short, I don't think this is feasible.

Comment From: sbrannen

It would be great if I can set initial delay (and also other delays) in my bootstrap.yaml with something like 10s.

Can't you already use a Duration string like PT10S for 10 seconds?