Spring Kotlin References in @Value-annotation

Here is the new blog post on Kotlin and Spring support in IntelliJ IDEA.
The Spring Framework supports reading values from different kinds of sources using the @Value annotation. Completion, reference navigation, and folding property names with their values is now supported for Kotlin in IntelliJ IDEA:

ValueFoldingYou can also use SpEl in the @Value annotation:ValueInSpelOn renaming of the bean properties all of the references are then properly updated:ValueAnnotationAndRenamingSo you can comfortably work with the @Value annotation in Spring-Kotlin projects with IntelliJ IDEA.

There are more posts about Kotlin with Spring support in IntelliJ IDEA coming. Please stay tuned!

This entry was posted in New Features, Tips & Tricks and tagged , . Bookmark the permalink.

2 Responses to Spring Kotlin References in @Value-annotation

  1. Yaml says:

    I use a YAML file instead of Properties file.

    The completion does not work with the YAML file, does it?

Leave a Reply

Your email address will not be published. Required fields are marked *