Skip to content

Support resolving random properties in property placeholder expressions #7150

Open
@frehov

Description

@frehov

Feature description

As the title suggest I would like to suggest that support for resolving random properties is added to property placeholder expression resolving.

Currently it looks like this is only resolved at the time of processing a propertysource that's been added.
As such it's not currently available to use within either @Value(${random.uuid}) or @Bindable(defaultValue = "${random.uuid}")`.

Having the above support would benefit immutable configuration classes, as you then can use a random value as fallback instead of acutally having to specify it in the cnfiguration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions