我是靠谱客的博主 贪玩小懒虫,这篇文章主要介绍springboot热部署配置,现在分享给大家,希望可以做个参考。

1、去设置那勾选图中,并apply应用保存
在这里插入图片描述
2、在idea主页面输入shift+alt+ctrl+/,出现,点第一个
在这里插入图片描述
3、勾选下面那个,然后close即可
在这里插入图片描述
4、添加依赖

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> 在</dependencies>后面的build标签里的spring-boot-maven-plugin下添加<configuration> <fork>true</fork> </configuration> ··· 类似如下 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>

4.2、要是上面依赖没效果
在这里插入图片描述

5、应用并ok
在这里插入图片描述

最后

以上就是贪玩小懒虫最近收集整理的关于springboot热部署配置的全部内容,更多相关springboot热部署配置内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(85)

评论列表共有 0 条评论

立即
投稿
返回
顶部