springboot2.x basic tutorial: JRebel implements SpringBoot hot deployment

When we modify the code frequently during the development of SpringBoot, we have to restart the project every time and wait a long time for it to take effect. Idea's Jrebel plug-in can modify a certain part of the code without starting the program again, modify it at any time, and take effect at any time. Next, I will post a detailed graphic tutorial for installing and cracking the artifact of JRebel.

Idea configuration Jrebel

Idea install Jrebel plugin

First go to Idea’s plug-in store, search for Jrebel, and then install the plug-in to restart Idea. If you can’t find it, you can download it from the official website and install it offline.

Crack Jrebel

Jrebel itself is a paid software, but there are also cracking methods on the Internet. The cracking methods are given below .
Jrebel is very easy to use, and it is inseparable from everyone's support, so if conditions permit, it is recommended that you buy genuine lisence.

First run jrebel-crack.jar locally

java -jar jrebel-crack.jar -p 8081

Screenshot of successful operation:

Find JRebel, Activation in the Help menu of Idea

Fill in the locally generated crack address

The Team Url address here is: http://localhost:9999/9427ac0a-f0e9-453f-aaaa-7cc9fe7143df, any guid, fill in the email address.

Finally, a simple configuration is required

1. Check the Enable Intellij automatic compilation option in Idea's settings->Jrebel Advanced
]
2. Check build project automatically in Idea's settings->Compiler 3. Idea's Help->Find Action search registry and check compiler.automake.allow .when.app.running


Test the effect of Jrebel hot deployment

1. Run the project using the Rebel Run project main class 2. Now after the project is running, we are modifying a piece of code without restarting the project to take effect.


A thousand miles begins with a single step. Here is the ninth article of the SpringBoot tutorial series. All project source codes can be downloaded on my GitHub . The Jrebel Idea plug-in cracking tools involved in this article are all placed on the Baidu network disk, and the WeChat official account programmers can get it by replying to jrebel.

Guess you like

Origin blog.csdn.net/github_35592621/article/details/108248904