Category Archives: Tips & Tricks

Kotlin JPA and Spring Data

IntelliJ IDEA 2018.3 comes with better JPA and Spring Data support for Kotlin. The IDE can automatically inject JPQL into query strings, providing completion for entity names and parameters:

Posted in New Features, Tips & Tricks | Leave a comment

Spring Boot Endpoints and Kotlin

In this latest post about Kotlin support in Spring plugins in IntelliJ IDEA, we’d like to point out that Spring Boot is also fully supported for Kotlin. When you run a Kotlin main function that starts a Spring Boot application, … Continue reading

Posted in New Features, Tips & Tricks | Tagged , | 3 Comments

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 … Continue reading

Posted in New Features, Tips & Tricks | Tagged , | 5 Comments

Spring and Kotlin final classes

It’s time for the next topic in the series of blogs on using Spring Framework with Kotlin support in IntelliJ IDEA. Kotlin classes are final by default, but some Spring functionality requires classes to be open. For instance, @Configuration classes … Continue reading

Posted in New Features, Tips & Tricks | 4 Comments

Spring Kotlin Gutters and Navigation

Let’s continue our posts on how IntelliJ IDEA supports developing Spring Framework applications with Kotlin. For now, let’s talk about navigation. The common way of navigation within a Spring Configuration is using gutters, and all Spring-related gutters are now available … Continue reading

Posted in New Features, Tips & Tricks | Tagged , | 1 Comment

Spring Config and missing Kotlin members

Kotlin is now a first-class citizen in the Spring Framework, and in IntelliJ IDEA we are trying to make all the Spring features that have worked with Java over the years work with Kotlin too. In this series of blog … Continue reading

Posted in New Features, Tips & Tricks | Tagged , | Leave a comment

Creating Multi-Release JAR Files in IntelliJ IDEA

One of the interesting features of Java 9 is support for Multi-Release JAR Files.  What does this mean?  In the past, library developers had three options when it came to supporting newer versions of Java:

Posted in Tips & Tricks | Tagged , | 6 Comments

Java 9 and IntelliJ IDEA

Java 9 is released today, so let’s do a quick recap of the existing Java 9 support in IntelliJ IDEA, and have a peek at some of the upcoming features in IntelliJ IDEA 2017.3 for Java 9.  Java 9 has been fully … Continue reading

Posted in EAP Releases, New Features, Tips & Tricks | Tagged | 29 Comments

Code Smells: Too Many Problems

Or: argh! Where do I start?! This is part of a series investigating code that looks suspicious (“code smells”), and exploring possible alternatives. Code Smells: Null Code Smells: Deeply Nested Code Code Smells: Iteration Code Smells: Mutation Code Smells: Multi-Responsibility Methods Code Smells: If Statements … Continue reading

Posted in Tips & Tricks | Tagged , | 8 Comments

Code Smells: If Statements

This is part of a series investigating code that looks suspicious (“code smells”), and exploring possible alternatives. Code Smells: Null Code Smells: Deeply Nested Code Code Smells: Iteration Code Smells: Mutation Code Smells: Multi-Responsibility Methods Code Smells: If Statements Code Smells: Too Many Problems The … Continue reading

Posted in Tips & Tricks | Tagged , | 9 Comments