Use JRebel plug-in application code to achieve SpringBoot heat load

Use JRebel plug-in implementation SpringBoot application development process heat load code and resources

Foreword

After the actual development process, we often modify the code, manually restart the project, see the changes effect. Is there a way to quickly, automatically will help us modify the code automatically updated, avoid manual restart, thereby improving development efficiency it? It is there, in my previous article which explains how to use the reader springboot-devtools achieve thermal loading. This article gave you another way: using Jrebel plug-in to modify the code and resources to complete the automatic update feature.

But for many people this function is called the function of the controversial author query Wikipedia, official documents, did not get a reasonable answer, there is no definition of authority, I know there: hot-start, thermal loads, hot update, hot deployment, hot switching. The words from the semantics are different, but what is not important, to achieve the most important, after all, the vast majority of programmers in order to use this function to facilitate the development, nor is a professional engaged in academic research.
If any students received authoritative sources say, the document can be connected back to me. I would understand it, and strive to achieve academic level of meticulous! Prior to the author in accordance with the perspective of their own ideas and to use the English translation of these terms.

Use Jrebel plug-in to achieve thermal load, which is the simplest kind of way, but there is a certain limitation, Jrebel plug-in is free. Although there are crack program, but is not recommended! Needy students own research, here do not introduced. (If you do want to be my blog address at the end of the reference text)

Step 1: Install the plug

IntelliJ IDEA IDE it is the most commonly used, for example of paper in the installation and use IDEA in Jrebel FIG. Indicated by the arrow to install. After the installation is complete, restart the IDEA to take effect.

Use JRebel plug-in implementation SpringBoot application development process heat load code and resources

Step two: Activate the plugin

After the installation is complete, the upper right corner will be more so a few buttons. Will prompt you to activate the plug after the click, you can purchase registration code activation can also be activated online. Can also fill a person's name, email, get a 10-day trial period after the phone!

Use JRebel plug-in implementation SpringBoot application development process heat load code and resources

The third step: update trigger configuration

This configuration is not only effective in conjunction Jrebel use, heat load to achieve in other ways, and the code is automatically updated resource also apply.

Use JRebel plug-in implementation SpringBoot application development process heat load code and resources

Spring Boot project in the startup configuration, FIG contents choose the red box: uodate classes and resources on 'update' action

Use JRebel plug-in implementation SpringBoot application development process heat load code and resources

After configuration, start SpringBoot project by JR button in the upper right corner. You can change the code and resources to implement automatic updates.

We need to explain this approach is simple, but Jrebel plug-in is charging plug. Without economic difficulties, please respect the labor of the original author.

Look forward to your attention

Guess you like

Origin www.cnblogs.com/zimug/p/11762730.html