Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of Hot deployment of JRebel in IDEA

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "JRebel's method of realizing hot deployment in IDEA". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Intellij Hot Deployment Plugin JRebel

Project requirements, I have been using eclipse, I also want to switch to IDEA, at first, very unaccustomed. After a few days of slow groping and getting used to it, I found that IDEA was really easy to use. Dark's interface is what I like, and intelligent prompts make writing code no longer boring.

Unfortunately, IDEA itself does not have integrated hot deployment tools. After making initial changes to the code, you need to re-run or debug, which greatly reduces development efficiency. After some searching, JRebel was found to be a good hot deployment tool, so write it down here as a memo.

There are two things you need to pay attention to when installing and using JRebel: activation and settings

Install JRebel

Click File->Settings->Plugins->Brows Repository in IDEA.

2. Enter JRebel in the search box to search

JRebel for Intellij

4、install

5. Restart IDEA after installation

Activate JRebel

JRebel is not a free plugin and requires activation to be used.

1, first go to github to download a reverse proxy software, I downloaded the windows x64 version.

download address

2. Double-click to run the program we downloaded

Connect to online licensing service

Enter http://127.0.0.1:8888/d3545f42-7b88-4a77-a2da-5242c46d4bc2 in the first line

Enter the correct email format in the second line, e.g. test@123.com

Click the change liense button below to verify activation

Tip: d3545f42-7b88-4a77-a2da-5242c46d4 bc2 is UUID, can be generated by itself, and must be UUID to pass verification

related settings

Although JRebel was installed and successfully activated at this point, when we used JRebel debug, we found that hot deployment did not work after modifying the code. Because there are two more places to set up

1. Set project automatic compilation

2, Set compile.automake.allow.when.app.running

Ctrl+Shift+A or help->find action... open

Search Registry

Find compiler.automake.allow.when.app.running and

5 Make sure it starts in Jrebel mode

6. Ensure that the project is hot deployed

"JRebel in IDEA to achieve hot deployment method" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report