一、安装jrebel插件。设置path to jrebel.jar为本地的。
二、pom.xml中在<build>下添加如下plugin
<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>
<configuration>
<rebelXmlDirectory>${basedir}/src/main/webapp/WEB-INF/classes</rebelXmlDirectory>
</configuration>
</plugin>
三、jrebel配置。将Enable JReble agent前的checkBox打钩
