0
点赞
收藏
分享

微信扫一扫

SpringBoot 项目热部署

boomwu 2022-03-26 阅读 122

SpringBoot 项目热部署

步骤:

  1. 引入依赖

     <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-devtools</artifactId>
    </dependency>
    
  2. 设置 idea 自动编译

    image-20220326105441217

    image-20220326105547530

    file -> settings -> compiler -> Build project automatically 勾选

  3. 设置 允许idea在程序运行中 重启项目

    快捷键 Ctrl + shift + alt + /
    image-20220326105901994image-20220326105936367

勾选 complier.automake.allow.when.app.runing

​ 在项目中修改代码后 , 按Ctrl+S 就可以热部署了

举报

相关推荐

0 条评论