IDEA installs hot deployment plug-in JRebel in detail

Introduction to JRebel

JRebel is a set of JavaEE development tools. JRebel allows the development team to complete more tasks within a limited time, fix more problems, and release higher-quality software products. JRebel is paid software, and users can download a 30-day evaluation version from the JRebel official site.
Jrebel can quickly implement hot deployment, save a lot of restart time, and improve personal development efficiency.
JRebel is a Java virtual machine plug-in that enables Java programmers to instantly see the impact of code changes on an application without redeploying. JRebel enables you to see changes in code, classes, and resources separately in real time, and you can upload them one by one instead of deploying them all at once. When a programmer modifies any class or resource in the development environment, the change will be directly reflected in the deployed application, thus skipping the process of building and deploying, and saving time spent on deployment every year Up to 5.25 weeks.

Introduce dependencies

Introduce dependencies that support SpringBoot hot deployment in the pom.xml file:

<!-- spring-boot-devtools热部署依赖包 -->
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-devtools</artifactId>
	<optional>true</optional>
</dependency>

Set up automatic compilation

File——>Settings——>Build,Execution,Deployment——>Compiler。

Check Build project automatically, Apply in the lower right corner of the panel——>OK.

insert image description here

JRebel installation

Note: [If the activation fails, check whether IDEA has been upgraded and you need to reduce the plug-in version]
IDEA version number > JRebel version number, check your own IDEA version number before downloading, and download the plug-in compressed package with a version smaller than the IDEA version through the compressed package installation method, otherwise Activation reports an error LS client not configued! ! !

1. To install the plug-in as a ZIP file, follow the steps below:

1. Download the version plug-in that needs to be installed from the official website, download address: https://plugins.jetbrains.com/plugin/4441-jrebel-and-xrebel-for-intellij/versions
2. After downloading, open the IntelliJ IDEA editor Select File—>Settings—>Plugins—>Settings button—>Installed Plugin from Disk (select the downloaded plugin to install from the folder).
insert image description here

2. Install directly in the plug-in warehouse, follow the steps below:

1. Open the IntelliJ IDEA editor and select File—>Settings—>Plugins—>enter Jrebel in the search box—>select the search result—>click Install .

insert image description here

JRebel activation

1. After the installation is complete, restart IntelliJ IDEA. The Jrebel plug-in will prompt you to activate it. Click Jrebel Activation to activate it.

Direct use of one-click address: 【https://jrebel.qekang.com/1eb4b7f2-6e08-48ac-a15f-6171d81d5056】

Among them, the Team URL can be generated online using the online GUID address : https://www.guidgen.com After getting the GUID string, replace {GUID} in https://jrebel.qekang.com/{GUID} to get the Team URL, if it fails, just refresh and reset. (or replace GUID in http://jrebel-license.jiweichengzhu.com/{GUID} )

2. Choose to agree to the agreement, select Active Jrebel (activate Jrebel) to activate.

insert image description here

3. To use Jrebel, you need IntelliJ IDEA to enable the hot deployment setting. If it is already enabled, please ignore this step. For details on the settings, please refer to the article " Configuring SpringBoot Hot Deployment in Idea" to configure automatic compilation and allow automatic startup.

JRebel test

After the activation is successful, restart the compiler, and you can see two Jrebel-specific buttons appear on the upper toolbar. Click any startup item, and relevant information will be printed.
insert image description here
After starting in Jrebel mode, modify any code, then save (Ctrl+S), and refresh the page to see that the modified content of the page has taken effect, which greatly saves development time.

Guess you like

Origin blog.csdn.net/hexianfan/article/details/131918927