SpringBoot在idea中的热部署配置

SpringBoot在idea中的热部署配置:

1.添加依赖:

<dependency>

  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <optional>true</optional><!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->
</dependency>
 
2.勾选  File-Settings-Compiler-Build Project automatically
  

3.ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running

 

 启动SpringBoot后修改文件可以发现SpringBoot自动重新启动
posted @ 2018-03-06 10:43  Grace&Gemin  阅读(1464)  评论(0编辑  收藏  举报