最来开发项目,修改JAVA后总是要启动Tomcat,特别烦人,还浪费时间。今天介绍一个插件Jrebel,可以修改JAVA代码后
不用启动JVM
安装步骤
1:通过http://www.zeroturnaround.com/update-site 安装jrebel
一般勾中JReble Eclipse Debugger Integration,JReble Eclipse Integration,JReble Eclipse Project Nature
JReble WTP Intefration就可以了,这几个啥意思,我就不讲了,他们都知道.
2:将运行时环境指向将下载好的已经破解的jrebel.jar(jrebel.jar和bin/jrebel-config.jar放在同一目录下)
window-Preferences-Jrebel(中指定),一定要设计下面的time,一开始我没设置,就没有起效.
3:window-perferences-Java-step Filtering.选择所有,勾中Filter synthetic methods(requires VM support)
4:勾中Project-Build Automatically。如果您在使用Maven
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
5:项目右键-jreble-最后一人生成jrebler.xml
6:
配置Web容器.就以大多用的Tomcat为例。勾中Publishing-第一个(Never publish automatically)在勾中Jreble Integration 所有。Modules-项目-Edit,去掉勾中的.