introduce

JRebel is a set of JavaEE development tools.

Jrebel enables rapid hot deployment, saving significant restart time and improving personal development efficiency.

JRebel is a JAVA virtual machine plug-in that allows JAVA programmers to see the immediate impact of code changes on an application without redeploying. JRebel allows you to see the changes to code, classes, and resources individually in real time, and you can upload them one by one rather than deploy them all at once. When a programmer makes a change to any class or resource in the development environment, the change is directly reflected in the deployed application, bypassing the build and deployment process and saving a lot of deployment time.

JRebel is a JVM plug-in that allows Java code changes to take effect immediately without rebooting the system.

IDEA native does not support hot deployment. Generally, after updating Java files, Tomcat server must be manually restarted to take effect, which wastes time and lives.

Currently the best solution for hot deployment of IDEA is to install the JRebel plug-in.

The installation

One: Install the plug-in

2. Generate guids online

Online GUID address

Open the JRebel panel and select Connect to Online Licensing Service

Server address: jrebel.qekang.com/{GUID}

Other configuration

Set the working mode to offline

Setting up automatic compilation

To achieve hot deployment, Intellij needs to be set up as follows:

  1. Since JRebel monitors changes to class files in real time to achieve hot deployment, auto-mutating is required in the IDEA environment to enable changes and take effect at any time.

  1. Open runtime compilation

Set up the compiler. Automake. Allow. The when. App. Running

Press the shortcut key Command+Shift+option+/ to select Registry

use

To run the project, click the button in the red box in the picture to run:

The first button is Run and the second is Debug.