1.settings--->plugins-->搜尋JRebel---->安裝/更新
2.settings--->JRebel--->active
idea中免費永久jrebel 激活:
http://139.199.89.239:1008/88414687-3b91-4286-89ba-2dc813b107ce
後面的guid(88414687-3b91-4286-89ba-2dc813b107ce)随便找一個網站生成一個即可。這個:https://www.guidgen.com/
激活後:
1、設定項目自動編譯
2、
ctrl+shift+A 或者 help->find action…打開
設定 compiler.automake.allow.when.app.running
搜尋registry
找到 compiler.automake.allow.when.app.running 并勾上
3.(可以用上,不用也行)
<!--熱部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--fork : 如果沒有該項配置,肯定devtools不會起作用,即應用不會restart -->
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>