Skip to content

Configuration Properties Editor

Alessandro Falappa edited this page May 31, 2016 · 12 revisions

The plugin enhances the standard NetBeans properties file editor when Spring Boot is detected on the project classpath.

The enhanced properties file editor adds Spring Boot configuration properties name and value completion and documentation based on processing of standard Spring Boot configuration metadata.

Properties name completion

Properties names are completed trough a substring search. Documentation of the currently selected property in the completion list is shown.

Properties value completion

Property values from the hints attribute in spring configuration metadata are completed when completion is invoked after an equal sign.

Custom properties support

If the spring configuration processor has been added as a maven dependency to the project, for example trough the maven code generators provided by the plugin, spring configuration properties metadata is also generated for @ConfigurationProperties classes in the project and used to provide completion and documentation for user defined properties.

To provide list of allowed values for user defined properties create an additional-spring-configuration-metadata.json file in the /META-INF subdirectory of the project.

Clone this wiki locally