1. 程式人生 > >4.4 Spring-boot之idea熱部署 > 我的程式猿之路:第三十四章

4.4 Spring-boot之idea熱部署 > 我的程式猿之路:第三十四章

1、點選: file ,Settings ,Build ,Execution,Deplment,compiler

然後記得apply,ok。 
2、組合鍵:Shift+ALT+Ctrl+/ ,選擇“Registry”,找到“complier.automake.allow.when.app.running”

點選Close

3、在pom.xml中新增依賴

dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</
artifactId> <optional>true</optional> </dependency>

4、在applcation.properties中新增

# 熱部署開關,false即不啟用熱部署;
spring.devtools.restart.enabled: true


OK!試一試,不行的話回覆一下謝謝