Install and use the JRebel hot deployment plugin in IDEA

content

1. The concept and significance of hot deployment

2. Install JRebel

3. Register JRebel 

4. Configure JRebel


1. The concept and significance of hot deployment

        Hot deployment is an application in a running state. After modifying its source code, the incremental content can be automatically compiled and deployed to the server without restarting, so that the modification takes effect immediately.

        Hot deployment allows us to see the effect without restarting the application after modifying the code during development, greatly improving development efficiency. Programs running on production can be upgraded without stopping, without affecting user usage.

        Tomcat hot deployment  has been introduced and configured in the article IntelliJ IDEA Basic Configuration (Personalized Edition) . Next, I will mainly learn to use a new hot deployment plug-in, JRebel.

2. Install JRebel

1> Download link: JetBrains Marketplace

Select the version you need to download (do not unzip) 

2>File------>Settings------>Plugins---->Install Plugin from Disk...,如下图:

3> Select the downloaded compressed package:

4> After the installation is complete, restart it to take effect: 

 

 

3. Register JRebel 

1> Click JRebel Activation after restart

2> Get GUID

Get the link: Generate GUIDs online

3> Merge the new GUID with JRebel's website (GUID is put in the back): https://jrebel.qekang.com/ + your GUID

4> Successful registration

4. Configure JRebel

1> Turn on IDEA's automatic build project option

2> Check the current project at JRebel at the bottom left

3> Start the project using JRebel's Debug mode

4> Open the test address in the browser, here I am: http://localhost:8080/hello

5> Modify the code content and build the project manually (shortcut ctrl+F9)

 

6> You can adjust the time of automatic hot deployment according to your own needs, in the settings, so that you can not build it manually.

Guess you like

Origin blog.csdn.net/qq_43554335/article/details/122478885