IntelliJ is caching code and resources (Gradle project); no hotswapping.

Answered

IntelliJ IDEA 2018.1 (Community Edition)
Build #IC-181.4203.550, built on March 26, 2018
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

 

Hi all, I'm using IntelliJ for Java development with Java 8 and Gradle.  I'm finding that anything within src/main/resources and any changes to annotations do not get picked up when restarting the application (Spring Boot Application).  Additionally, there is no hot swapping at all.  Is this expected of IntellJ?  Having come from the Eclipse world this feels very archaic and slow my development lifecycle to a crawl as I feel I'm constantly waiting for a full rebuild of the project. 

0
3 comments

Hotswapping should work fine with Build | Build. If it doesn't, please report a bug at https://youtrack.jetbrains.com/issues/IDEA with the sample project and the steps to reproduce.

Note that proper Spring Boot support is available in IntelliJ IDEA Ultimate only and you are also not on the latest build. See https://www.jetbrains.com/idea/features/editions_comparison_matrix.html.

0
Avatar
Permanently deleted user

Correct me if I'm wrong, but the community edition should work fine with spring boot as long as I'm having IntelliJ treat the project as a standard java application correct?  Is the hot-swapping disabled because it detects spring?

I'm not sure I even understand from that matirx what enhancements IntelliJ premium brings to a Spring developer.

0

You can see the Ultimate specific features here:

https://www.jetbrains.com/help/idea/spring-boot.html
https://www.jetbrains.com/help/idea/spring-support.html

Regarding the hot reload of Spring Boot, see https://stackoverflow.com/a/44095431/104891.

Ultimate provides the special settings for Dev Tools update configuration, see the "Configure application update policies with devtools" help section.

0

Please sign in to leave a comment.