Skip to content

Automatically Annotate @ConfigurationProperties with @Introspected if they have validation rules #1795

Closed
@ilopmar

Description

@ilopmar

This is a feature request

Automatically apply @Introspected to @ConfigurationProperties if they have validation rule

you may wish to add a feature request that automatically applies @Introspected to @ConfigurationProperties that have validation rules.

@ConfigurationProperties("my.prefix")
public class FooConfigurationProperties {

    @NotBlank
    private String serverToken;
    ...
    ...
}

At this moment it is necessary to manually annotate the class with @Introspected to use the new Bean Validation module (without hibernate-validator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions