springboot+idea 热部署

1 配置pom.xmlspring

<!--spring-boot-devtools 热部署-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

2 配置idea 的  Compiler  勾选 Build project automatically   windows

3 command+shift+a 搜索 registry  (windows下是ctrl+shift+a) (下图1)app

  双击第一个选项, 打开的列表中 勾选 : compiler.automake.allow.when.app.running(下图2)ide

  

  

4setting -- System settings spring-boot

取消 save files on frame deactivationui

勾选 save files automatically if application is idle for 30 sec.idea

相关文章
相关标签/搜索