如何在IDEA中配置Spring Boot实现自动热部署?
- 内容介绍
- 文章标签
- 相关推荐
本文共计179个文字,预计阅读时间需要1分钟。
gradle构建配置中,添加依赖compile('org.springframework.boot:spring-boot-devtools'),设置步骤如下:
1.第一步:在build.gradle文件中添加依赖。
2.第二步:按下Ctrl+Alt+Shift+gradle,进入构建模式,添加依赖。
3.第三步:输入compile('org.springframework.boot:spring-boot-devtools'),完成依赖添加。
gradle构建形式
添加依赖
compile("org.springframework.boot:spring-boot-devtools")其他设置
- 步骤1
- 步骤2
按下 Ctrl+ Alt + Shift + / ,做如下操作:
这样设置之后,修改后台代码,马上重启,html页面刷新后也能看到效果!
本文共计179个文字,预计阅读时间需要1分钟。
gradle构建配置中,添加依赖compile('org.springframework.boot:spring-boot-devtools'),设置步骤如下:
1.第一步:在build.gradle文件中添加依赖。
2.第二步:按下Ctrl+Alt+Shift+gradle,进入构建模式,添加依赖。
3.第三步:输入compile('org.springframework.boot:spring-boot-devtools'),完成依赖添加。
gradle构建形式
添加依赖
compile("org.springframework.boot:spring-boot-devtools")其他设置
- 步骤1
- 步骤2
按下 Ctrl+ Alt + Shift + / ,做如下操作:
这样设置之后,修改后台代码,马上重启,html页面刷新后也能看到效果!

