1.IDEA配置
Spring boot热部署(IDEA)2.在pom.xml中加入

<!-- 热部署 -->
<dependency>
	<groupId>org.springframework.boot</groupId> 					    <artifactId>spring-boot-devtools</artifactId> <optional>true</optional>
	 <scope>true</scope> 
</dependency>
 <build>
  <plugins>
   <plugin>
    <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- 没有该配置,devtools 不生效 -->
      <fork>true</fork> <addResources>true</addResources> </configuration>
       </plugin>
     </plugins> 
  </build>

相关文章: