spring-boot-devtools热部署使用
pom依赖加入:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
settings:

Ctrl+Shift+Alt+/:Register

最后,务必重启IDEA!!!重启IDEA!!!!!!!重启IDEA!!!!!!!!!
使用注意事项↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
-
Ctrl+S保存后,如果再去修改其他代码,不会热部署。
-
Ctrl+S保存后,不修改其他代码,才会过几秒热部署。
-
鼠标移出idea,过几秒才会热部署。
-
鼠标移出idea,过几秒才会热部署。
-
速度和Ctrl+F9的效果差不多。
1万+



被折叠的 条评论
为什么被折叠?



