Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
ScheduledAnnotationBeanPostProcessor does not support Duration syntax [SPR-15455] #20016
The ScheduledAnnotationBeanPostProcessor component is not able to parse and support the duration syntax. (PT20S).
In order to support this, one may have to configure a StringValueResolver on ScheduledAnnotationBeanPostProcessor but there is no clear path to how that might be injected into ScheduledAnnotationBeanPostProcessor. Given how SchedulingConfiguration creates the ScheduledAnnotationBeanPostProcessor bean, it seems like the StringValueResolver instance is always hardcoded.
Received error is:
Referenced from: commits 13c7354
Juergen Hoeller commented
This makes sense in the context of Spring Framework 5.0 in particular where we provide deeper integration with Java 8 across the framework.