Skip to content

Support flexible duration parsing in placeholders for @Scheduled annotations #15126

Closed
@manderson23

Description

@manderson23

I have a @ConfigurationProperties class with Duration fields. I'd like to reference one of these fields when declaring an annotation like @Scheduled(fixedRateString = "${my-prop.rate}").

To do this I have to specify the value for the property using the java.time.Duration syntax. It would be nice to be able to use the flexible values introduced in #11078.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions