Idea 配合 devtools 依赖 实现热部署

  1. 核心依赖

    java 复制代码
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-devtools</artifactId>
                <scope>runtime</scope>
                <optional>true</optional>
            </dependency>
  2. yaml配置

    java 复制代码
    spring:
    ## 热部署
      devtools:
        ## 重新启动false
        restart:
          enabled: false
        ## 热加载 true
        livereload:
          enabled: true
  3. idea设置

  4. 验证

相关推荐
李少兄8 小时前
在 IntelliJ IDEA 中修改 Git 远程仓库地址
java·git·intellij-idea
先跑起来再说14 小时前
Git 入门到实战:一篇搞懂安装、命令、远程仓库与 IDEA 集成
ide·git·后端·elasticsearch·golang·intellij-idea
LYOBOYI12316 小时前
vscode界面美化
ide·vscode·编辑器
golang学习记18 小时前
IntelliJ IDEA 2025.3 重磅发布:K2 模式全面接管 Kotlin —— 告别 K1,性能飙升 40%!
java·kotlin·intellij-idea
昀贝1 天前
IDEA启动SpringBoot项目时报错:命令行过长
java·spring boot·intellij-idea
骥龙1 天前
第六篇:AI平台篇 - 从Jupyter Notebook到生产级模型服务
ide·人工智能·jupyter
kun200310291 天前
如何用Obsidian+VSCode生成文案排版并发布到公众号
ide·vscode·编辑器
摇滚侠2 天前
在 SpringBoot 项目中,开发工具使用 IDEA,.idea 目录下的文件需要提交吗
java·spring boot·intellij-idea
努力学编程呀(๑•ี_เ•ี๑)2 天前
【在 IntelliJ IDEA 中切换项目 JDK 版本】
java·开发语言·intellij-idea
开源技术2 天前
Python GeoPandas基础知识:地图、投影和空间连接
开发语言·ide·python