Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring-Loaded setup for Intellij

I downloaded spring-loaded.jar and tried to set it up for IntelliJ but unfortunately it did not work.

So, here is my questions:

1) What needs to be done exactly to set it up? 2) How do I trigger hot-swap?

like image 758
led Avatar asked Jun 06 '26 17:06

led


1 Answers

I think you're looking for the spring-loaded project.

As stated in the official documentation, you have to add this java agent argument in your IntelliJ "run configuration" (the configuration that runs your application - it may be a Java class or a servlet container like Tomcat):

-javaagent:<pathTo>/springloaded-{VERSION}.jar

Once this agent is loaded, it watches *.class files on disk and reloads them if modified (by your IDE, for example).

Warning: depending on your application, and especially if it contains caches, data intialized at startup... you may have to write specific plugins or event listeners to reinitialize those.

like image 84
Brian Clozel Avatar answered Jun 10 '26 17:06

Brian Clozel