1
2
3
4
5
6
7
| <!-- 热部署模块 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
|
1
2
3
4
5
6
7
8
| <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
|
1
2
| ctrl+alt+s 打开idea的设置,
找到[Build,Execution,Deployment] - > [Complier] -> 打勾[Build project automatically]
|
1
2
| ctrl+alt+shift+/, 打开的窗口选择第一项[Registry]
找到[ compiler.automake.allow.when.app.running ] 后面打勾
|