如何使用IDEA配置Spring Boot实现自动热部署?
- 内容介绍
- 文章标签
- 相关推荐
本文共计187个文字,预计阅读时间需要1分钟。
在Gradle构建格式中,添加依赖`spring-boot-devtools`的步骤如下:
1. 在`build.gradle`文件中,找到依赖配置部分。
2.添加以下依赖项:
groovy compile('org.springframework.boot:spring-boot-devtools')3.保存文件并执行构建。按`Ctrl+Alt+Shift+G`构建项目,或直接在命令行中运行`gradle build`。
gradle构建形式
添加依赖
compile("org.springframework.boot:spring-boot-devtools")其他设置
- 步骤1
- 步骤2
按下 Ctrl+ Alt + Shift + / ,做如下操作:
这样设置之后,修改后台代码,马上重启,html页面刷新后也能看到效果!
本文共计187个文字,预计阅读时间需要1分钟。
在Gradle构建格式中,添加依赖`spring-boot-devtools`的步骤如下:
1. 在`build.gradle`文件中,找到依赖配置部分。
2.添加以下依赖项:
groovy compile('org.springframework.boot:spring-boot-devtools')3.保存文件并执行构建。按`Ctrl+Alt+Shift+G`构建项目,或直接在命令行中运行`gradle build`。
gradle构建形式
添加依赖
compile("org.springframework.boot:spring-boot-devtools")其他设置
- 步骤1
- 步骤2
按下 Ctrl+ Alt + Shift + / ,做如下操作:
这样设置之后,修改后台代码,马上重启,html页面刷新后也能看到效果!

