首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >IDEA中实现springboot热部署

IDEA中实现springboot热部署

作者头像
超级小的大杯柠檬水
发布2024-11-21 12:39:53
发布2024-11-21 12:39:53
2470
举报
文章被收录于专栏:CYCY

IDEA中实现springboot热部署

热部署: 每一次修改代码后会自动更新,无需每次重启

依赖(pom.xml)

修改后记得Reload一下

代码语言:javascript
复制
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

application.properties

代码语言:javascript
复制
# 热部署
spring.devtools.restart.enabled=true

settings

  1. 搜索Compiler,勾选Build project automatically
  1. Advanced Settings->勾选Allow auto-make to start even if developed application is currently running

加快热部署速度

现在SpringBoot就可以自动热部署了,效果还不错,但是感觉速度有点慢。 settings->Languages & Frameworks->Spring->Spring Boot 设置Refresh health in the Actuator tab ewver为1

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-09-21,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • IDEA中实现springboot热部署
    • 依赖(pom.xml)
    • application.properties
    • settings
    • 加快热部署速度
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档