idea+spring-boot+devtools热部署
标签: spring-boot
![](http://static.blog.csdn.net/images/category_icon.jpg)
maven dependencies增加
![](//img-blog.csdn.net/20170320144426734?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvanNzaGFvamluamll/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
project增加
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
- <span style="white-space:pre"> </span><fork>true</fork>
- </configuration>
- </plugin>
- </plugins>
- </build>
idea设置
ctrl+shift+alt+/
重启项目即可。