天天看点

idea热部署html页面,idea热部署(自动刷新)

在原先使用eclipse的时候很容易布置了热部署

但是在idea的使用中写html的文件时候总是需要去重启浪费了很多时间

所以这篇博客主要讲解的是idea的热部署

配置idea的热部署需要两个步骤

一、

在pom文件中添加依赖

org.springframework.boot

spring-boot-devtools

true

true

org.springframework.boot

spring-boot-maven-plugin

true

二、

设置IDEA的自动编译:

(1)File-Settings-Compiler勾选 Build Project automatically

(2)快捷键 ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running

这样我们的idea的热部署就完成了!

本文分享 CSDN - msfh。

如有侵权,请联系 [email protected] 删除。

本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。