Step1
pom.xml 中添加如下代码:
<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>
step2 添加 rebel.xml 文件
勾选
生成了 rebel.xml 文件
step3 配置运行
配置运行选项,
然后就运行
step4 同步操作
这样还不能实现eclipse中那样的快速自动编译生效,需要自己手动编译一下修改的java文件:
crtl+F9 是编译单个文件
ctrl+shift+F9 是编译整个项目
当然 html 文件无需这样 ,直接刷新页面就可以了…
参考过得文档:
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html
http://flurdy.com/docs/intellij/
https://dzone.com/articles/using-jrebel-intellij-idea-os
http://237451446.blog.51cto.com/2307663/1441300