This plugin intends to simplify the usage of http://hotswapagent.org. Agent provides real hotswap fu...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Our work is fun, but we don't want to waste our time waiting when our latest changes will be deployed on application server!
You can reload classes changed during debugging without need to restart the entire application using the HotSwap mechanism
Command+Shift+F9in IntelliJ IDEA.
BUT!At the moment due to original limitations of Java SDK the
HotSwapping is possible ONLY if the method body is altered.
In all other cases (like changing method or class signature), the class reload is
impossibleand the corresponding error message appears.
We need to use special java agent together with our JVM to enhance ability of reloading of changed classes. For example:
$550:fearful: per year per user)
crash JVM:dizzy_face:, the Spring team propagates the "Restart application on file-change"-approach of spring-boot-devtools for Spring Boot)
We will choose: DCEVM + Hotswap Agent :thumbsup:
| steps: |
| ----- | |1. Download latest release of DCEVM Java patch and launch the installer with sudo(e.g.
sudo java -jar DCEVM-light-8u51-installer.jar). Currently you need to select correct installer for Java 8.| |2. Select java installation directory on your disc and press "Install DCEVM as altjvm" button. JDK version
1.8.0_45is recommended. download here | |3. Download latest release of Hotswap agent jar, unpack
hotswap-agent.jarand put it anywhere on your disc. For example: C:\java\hotswap-agent.jar| |4. Installation is done!| |5. More info here|
HotSwapAgent plugin for IntelliJ IDEA.
| steps: |
| ----- | |1. Install HotSwapAgent plugin for IntelliJ IDEA. | |2. Enable HotSwapAgent plugin for all configurations (or one by one). | |3. Start the application in DEBUG mode. You will see HOTSWAP AGENT notification in your console in case if setup was correctly done. | |4. Be sure that you have
"Reload classes after compilation: Always"ON in IntelliJ IDEA in HotSwap section in your IDEA preferences. | |5. To re-deploying changed classes in IDEA press keys combination (:
Ctrl+Shift+F9) to compile the current file|
:information_source: Instead of compiling the classes manually you can use the Save Action plug-in, which can trigger the compilation automatically and thus enabling "hotswap on save".
| ----- | |1.
changemethod name & then press (:
add newmethod & then press (: