Produce metadata for configuration values to improve IDE support for configuration files #33591
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
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.
The text was updated successfully, but these errors were encountered: