jrebel+maven+IntelliJ IDEA hot deployment development environment

1. Install the jrebel plugin

     a) Open the IntelliJ IDEA setting window
     b) Select "Plugins" in the left window, find the jrebel plugin in the plugin library      c) Download and install the plugin      d) After the installation is complete, remind to restart IDEA 2, crack jrebel      1) After restarting IDEA, You will be prompted to activate;      2) Download jrebel-5.4.0.rar for the jrebel cracked version, replace the corresponding jrebel.jar in the plugin after decompression, and put jrebel.lic in the same directory; also under .jrebel in the current user directory Place the above two files  3, use jrebel to start the project      1) When starting, look at the startup parameters in the console and call which jrebel.jar 2) If it starts, jrebel reminds UNABLE TO INITIALIZE LICENSING - NO LICENSE FOUND, indicating when starting The corresponding jrebel.jar is still invalid; according to the jrebel.jar suggested in 1), copy jrebel.lic to the same directory; the normal prompt will be as follows: 4. Use jrebel-maven-plugin in the maven project      1) In the project parent Set in the project, such as in tbss-all;      2) Execute in the tbss-all project before the project runs, mvn jrebel generate      3) Start the web project and use the tomcat-maven-plugin plugin
      
 


 

 

 

 


 


      

      

      

5. Test jrebel using
    1) It is displayed in the original function as  


     2) Add a new field in the WorkbenchAction.java file, as well as getter, setter, and methods in workbench()  
and modify it in vm as:  
3) Compile WorkbenchAction.java  
in The event log window prompts to compile, tbss-tomcat: a class re-added successfully. At the same time, there is a yellow-green prompt bar for the jrebel plugin in the lower left corner;
4) Test results:

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326687511&siteId=291194637