1. 程式人生 > >springboot+idea 熱部署

springboot+idea 熱部署

ctrl+ auto all 技術分享 熱部署 img optional make dea

1 配置pom.xml

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

2 配置idea 的 Compiler 勾選 Build project automatically

技術分享圖片

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

  雙擊第一個選項, 打開的列表中 勾選 : compiler.automake.allow.when.app.running(下圖2)

  技術分享圖片

  技術分享圖片

springboot+idea 熱部署