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. 验证

相关推荐
winrisef1 天前
删除无限递归文件夹
java·ide·python·pycharm·系统安全
海上生明月丿1 天前
在IDEA中使用Git
java·git·intellij-idea
小蕾Java1 天前
PyCharm快速上手指南,数据类型篇
ide·python·pycharm
-雷阵雨-2 天前
数据结构——优先级队列(堆)
java·开发语言·数据结构·intellij-idea
快码加编~2 天前
无法解析插件 org.apache.maven.plugins:maven-site-plugin:3.12.1
java·学习·maven·intellij-idea
小蕾Java2 天前
IDEA快速上手指南!
java·intellij-idea·swift
-雷阵雨-2 天前
数据结构——栈和队列(模拟实现)
java·开发语言·数据结构·intellij-idea
元气满满的霄霄2 天前
Spring Boot整合缓存——Redis缓存!超详细!
java·spring boot·redis·后端·缓存·intellij-idea
moshumu12 天前
局域网访问Win11下的WSL中的jupyter notebook
ide·python·深度学习·神经网络·机器学习·jupyter
Aevget2 天前
PHP智能开发工具PhpStorm v2025.2全新上线——支持PHPUnit 12等
开发语言·ide·php·phpstorm