SpringBoot(二):SpringBoot 热部署

 

 1.配置pom:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
二、IDEA 设置

3. Register配置:

Ctrl+Shift+Alt+/ => Register => 找到并勾选compiler.automake.allow.when.app.running => IDEA重启

4. 修改完成重启即可。

 

posted @ 2019-08-21 10:59  威兰达  阅读(413)  评论(0编辑  收藏  举报