iampkm

Intellij IDEA 2018.2.2 SpringBoot热启动 (Maven)

2018-08-29 10:28  Spring.Guo  阅读(389)  评论(0编辑  收藏  举报

一、IDEA 工具配置

1. 打开IDEA 设置界面,选择编译,按图打勾。

image

2 . 然后 Shift+Ctrl+Alt+/,选择Registry 

image 

3 . compiler.automake.allow.when.app.running   选项打勾

image

 

二 、代码中的pom.xml 

1 . 配置项maven 依赖

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional></dependency> //该配置必须

2 .  开启热启动部署

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins></build>

 

热启动配置完毕,启动项目,修改代码,然后刷新就看到变化了! (因为编译,可能要稍等几秒才有变化)

分类:

技术点:

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2021-05-08
  • 2021-09-26
  • 2021-09-16
  • 2021-07-07
  • 2022-02-11
  • 2022-03-02
猜你喜欢
  • 2021-11-28
  • 2022-01-01
  • 2021-04-27
  • 2022-01-10
  • 2021-12-24
  • 2021-08-16
  • 2021-08-18
相关资源
相似解决方案