在pom.xml中增加依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
然后setting->build->compile->Build Project Automatically
这时候还没完,还需要我们按住Ctrl+Shift+Alt+/ 弹出窗口选择Registry…
有的人到上面就可以热部署了;如果你还不可以,接着看下面内容 :