前提:1.你的IDEA已经安装了JRebal,并且激活了
2 IDEA已经绑定了你电脑的tomcat,不是Maven的tomcat
首先:在pom.xml中引入JRebel插件。
<plugin> <groupId>org.zeroturnaround</groupId> <artifactId>jrebel-maven-plugin</artifactId> <version>1.1.5</version> <executions> <execution> <id>generate-rebel-xml</id> <phase>process-resources</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin>
.1.
2 选中你要热部署的Modul
.
3.创建tomcat ,之后点击绿色的+号,选中你要热部署的war包,注意要带exploded 的 ,完成之后如图
4.在On ‘Update’ xxx 和 On frame xxx 中选择如图选项,之后点击ok,tomcat部署成功。
5 点击第三个按钮,启动JRebel
.
如图启动成功
6.修改代码,之后点击蓝色的圆圈键
发现Server窗口出现,修改后的代码,成功。