.在項目中導(dǎo)入spring-boot-devtools相關(guān)依賴:
<dependency>
<!--Spring 官方提供的熱部署插件 -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>1.4.3.RELEASE</version>
</dependency>
2.通過快捷鍵CTRL +SHIFT +A搜索make project automatically,選中該選項
3.通過快捷鍵CTRL +SHIFT +A搜索Registry, 找到compile.automake.allow.when.app.running選項,并選中。
4.重啟IDEA就可以實現(xiàn)熱部署了
compiler.automake.allow.when.app.running