1.下載插件安裝https://plugins.jetbrains.com/idea/plugin/4441-jrebel-for-intellij
2. install plugin from disk
3. 獲取激活碼從這個(gè)網(wǎng)站上https://my.jrebel.com/.可以用 facebook,或者 twitter賬號(hào)登錄.
4. 激活插件 Help --> JRebel --> Activity.輸入第三步中獲得的激活碼
5. 選中要熱部署的工程View -->Tool Windows -->JRebel -->選中當(dāng)前工程
6. 用 meavn 插件生成rebel.xml. pom.xml 文件中這樣配置.進(jìn)入工程所在的目錄執(zhí)行 mvn jrebel:generate 生成 rebel.xml 就可以快樂使用熱部署了.
7. 更詳盡的設(shè)置請(qǐng)參考官方文檔https://zeroturnaround.com/software/jrebel/quickstart/intellij/#!/project-configuration
<build>
<finalName>seckill</finalName>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.7</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>