一、Adding devtoos to your projiect
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
二、Adding plugin to your pom.xml
<build>
<finalName>你的工程名字</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
三、Enabling automatic bulid
设置file--settings--bulid-Complier 中ADBC 全部勾选
四、Update the value of
idea中 pass crtl+shift+alt+/ 勾选下图两项
五、重启IDEA
重启idea 19以上版本不需要重启