前言
spring-boot-devtools
提供了很多提高应用开发体验的功能。其中就有热部署的功能。该功能在spring-tool-suit
自动集成热部署,但在IDEA中需要配置才能实现,不然需要手动编译类来使更改生效。
2021版
-
配置自动编译
-
配置允许运行时自动编译(旧版本在Registry中,加下文)
2021之前的版本
- 同上
ctrl + shift + alt + /
,选择Registry,勾上Compiler autoMake allow when app running。
若文章有误,或你有什么见解,欢迎留言指正和交流。
原创不易,若有所帮助,欢迎点赞、收藏。