springcloud实战四:热部署Devtools
1.导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2.添加插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
3.Settings->Compiler 统统打勾
4.Update the value of
ctrl+shift+Alt+/->Registry->compiler.automake.allow.when.app.running打勾
actionSystem.assertFocusAccessFromEdit打勾
5.重启