Skip to content

Produce metadata for configuration values to improve IDE support for configuration files #33591

@frode-carlsen

Description

@frode-carlsen

Spring Boot has a feature that allows producing metadata automatically from files annotated with @ConfigurationProperties, that then can be used by IDEs such as Intellij to flag used/unused configuration variables in configuration files (e.g. yaml or properties). This helps ensure proper usage, documentation, and allows cleaning up configuration values that no longer are in effect (particularly valuable in large systems). This feature is opted-in to using the "spring-boot-configuration-processor" annotation processor.

However, there are other useful ways to configure Spring beans, such as through directly referencing @value, which isn't/can't be supported by this (ref spring-projects/spring-boot#42429). It would be greatly helpful if Spring Framework could support such an extension to the quality of configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions