Marc Rufer bio photo

Marc Rufer

Software engineer
@d-fens GmbH

Twitter Google+ LinkedIn Github Stackoverflow
RSS Feed

Configuration properties meta-data support in IntelliJ

Marc Rufer 06 Apr 2015 Java spring IntelliJ IDEA JetBrains

In the JetBrains webinar about Spring Boot Support in IntelliJ IDEA 14.1 an interesting functionality of IntelliJ IDEA was presented. Since version 14.1 IntelliJ supports “code completion” and contextual help for configuration properties when working with application.properties-files in spring boot context.

Spring boot jars contain meta-data files located inside META-INF that provide details for configuration properties. These meta-data files are json-files named spring-configuration-metadata.json. The “code completion” for configuration properties in IntelliJ is based on these meta-data files placed under META-INF.

Every spring boot based jar that supports configuration properties can provide such a meta-data file called additional-spring-configuration-metadata.json. The additional meta-data file will then be automatically merged to the main meta-data file by the annotation processor and will be resolved by IntelliJ for the “code completion” in application.properties.

The following snippet shows an example of such an additional meta-data file.

For more details about the configuration meta-data have a look at the spring boot documentation (Appendix B Configuration meta-data)

For an example use of the “code completion” functionality in IntelliJ have a look at the recorded JetBrains webinar @Youtube from 18:30.

Below some links related to the webinar about Spring Boot Support in IntelliJ IDEA 14.1

comments powered by Disqus

Posts

HOWTO Access Azure File Share in PowerShell Script executed by a Scheduled Task BUG "Task Scheduler service is not available" Error, if specifying Network Connection Condition HOWTO Sync OneDrive on Server even if Windows User not logged in HOWTO Access Microsoft Access Database with PowerShell Get NetworkCredential from PSCredential splits Username into Username and Domain HOWTO Create LocalDB File (.mdf) manually in Visual Studio 2015 HOWTO Set Cookie Header on DefaultRequestHeaders of HttpClient HOWTO Set up PowerShell Remote Session Configuration HOWTO Analyze PowerShell Scripts with PSScriptAnalyzer HOWTO Sign PDF with SuisseID NoBrainer PUT/PATCH/MERGE with OData Service Client Apply Commit from one Repository to another GitHub Repository creation with PowerShell HOWTO Sign PowerShell Script with SuisseID Swissunihockey game schedule PDF generator HOWTO Maven Release on JetBrains TeamCity Limitations when running Activiti in H2 Embedded Mode HOWTO Pylint Integration in IntelliJ 14 HOWTO Install Windows 10 IoT Core on Raspberry PI 2 from a VM First steps with Dropwizard Allman code style for IntelliJ First steps with Flyway IntelliJ - Setup custom inspection profiles Configuration properties meta-data support in IntelliJ AMQP Integration with spring integration OCA Java SE 7 Programmer I Certification Guide Swissunihockey key matcher Swisscom SMS-API-Client Some hints concerning logging with Log4j IFTTT A brilliant service Run deltacloud on a VirtualBox-VM Project specific maven settings in IntelliJ AngularJS Javascript for beginners Liferay in Action