For a web project, it takes a long time to restart the project after modifying the Java file.
I heard that jrebel can be automatically loaded.
I have read some articles on the Internet and also read jrebel's documents. I have never succeeded. Today I found another article. I tried it a little and succeeded. I hope it will be useful to you.
1. http://www.zeroturnaround.com/jrebel/current/ download jrebe (30 days trial, there are also a lot of online I am looking for a hacker)
2. Add the jrebel plug-in of eclipse
Help»Software Updates»
Available Software»Add site
Use http://www.zeroturnaround.com/update-site/
Window»Preferences»
Jrebel
Java» debug» step filtering
Add filterButton addCom. zeroturnaround .*AndOrg. zeroturnaround .*.
Set Project> buildAutomatically
(Jrebel's document ends here, but I have not set it here)
You also need to set the following
Double-click the server. The configuration page of the published ate is displayed. Publishing ---> never publish automatically
Jreble intergration ---> enable jreble agent
Switch to the modules page
Set auto reload as Disabled
Note that I used to see on the Internet that all others said they wanted to select this never publish sutomatically. However, after I chose not to automatically release this machine, I could not re-load the JSP page after I modified the JSP page, after automatically publish when resources change is selected, jsp can be hot loaded as before.
Last step
Run --> run commands
Add (-path of jrebel. Jar downloaded by Java agent, path of the class file of-drebel. dirsc Project)
-Noverify
-Javaagent: G:/download/jrebel. Jar
-Drebel. dirs = F:/project/test/webcontent/WEB-INF/classes, F:/project/test/webcontent (other articles on the Internet do not say this configuration, are using generate rebel. XML. I don't know why I generate rebel on the local machine. XML does not work. The preceding two dirs paths are rebel. generated in XML). After all these configurations, JSP and class files can be hot loaded.
So far, the project should be able to automatically load classes when the Java file is modified. Some people may find that the modified class cannot display new things. Modify the IE option, just clear the IE cache.