Skip to content

Enhancement: Add configuration metadata for Spring Boot application properties #475

@moritzreiter

Description

@moritzreiter

Spring Boot has a mechanism for adding configuration metadata to enable IDE support for application properties.

To illustrate this, have a look at this screenshot which shows auto-completion for application properties from the Pebbles templates engine Spring Boot integration:

Screenshot 2023-10-08 at 10 15 41

For Simple Java Mail on the other hand, this doesn't work and IntelliJ shows an error about unresolvable configuration properties for all the application properties introduced by the Spring module of Simple Java Mail:

Screenshot 2023-10-08 at 10 15 11

The usual method to create this metadata is to have it generated by the Spring Boot Configuration Processor. To my understanding, this would require turning the Simple Java Mail Spring module into a Spring Boot project.

At first I thought that only the automatic metadata generation depends on Spring Boot, but now my understanding is that the whole configuration metadata feature is Spring Boot only. So, I guess, turning the module into a Spring Boot project would really be the only way to get IDE support for the Simple Java Mail application properties.

I understand that this might constitute a rather significant design change to the module which could have implications I can't assess appropriately.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions