springboot热重启 Springboot教程之怎样设置springboot热重启

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

springboot热重启 Springboot教程之怎样设置springboot热重启

qiaoguotan   2021-01-29 我要评论

SpringBoot热重启步骤

1.打开点击pom.xml配置文件
2.找到配置文件节点
3.在节点中插入以下代码

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

4.点击编辑器菜单栏view ->Tool Windows->Maven Projects 中查看是否添加成功,没有自己建立建立项目并勾选上这个功能
5.编辑器配置热重启 File->Settings->搜索:Compiler ->勾选 Bulid project automatically

在这里插入图片描述

6.编辑器中 ctrl +shift +a 搜索 Registry
找到以下内容并在右边打钩
compiler.automake.allow.when.app.running √
然后点击右下角close
重新运行下项目

总结

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们