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.

5 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?

  2. zhangchuanben says:

    The idea crash when i use spring environment.getProperty() method

  3. zhangchuanben says:

    When use @Value or environment.getProperty() method, while property not locally but remote, the idea crash, my idea version is 20118.2.4

Leave a Reply

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