Intellij Idea Spring Boot 热部署

1. POM 文件添加依赖

1 <dependency> 
2    <groupId>org.springframework.boot</groupId> 
3    <artifactId>spring-boot-devtools</artifactId>
4    <optional>true</optional> 
5 </dependency>

2.POM 文件添加插件

1 <plugin> 
2     <groupId>org.springframework.boot</groupId>
3     <artifactId>spring-boot-maven-plugin</artifactId> 
4     <configuration> 
5         <fork>true</fork> 
6         <addResources>true</addResources>
7         <!--支持静态文件热部署--> 
8     </configuration>
9 </plugin>

3.Compiler加入设置

4.ctrl + shift +alt + /     出现下面这个  点击它

第二步操作要在没启动的时候弄

 

 

posted @ 2018-07-13 10:25  12344321hh  阅读(177)  评论(0编辑  收藏  举报