简介我的是idea 2020的,今天第一次配置热部署,参考网上一些说明今天做了总结,方便和我一样遇到问题的人。
一、idea配置图解说明
在pom.xml 里引入spring-boot-devtools
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.3.3.RELEASE</version>
<optional>true</optional>
</dependency>
在build中加入下面
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.3.RELEASE</version>
</plugin>
这里有个主意的是不加 <version>2.3.3.RELEASE</version>这个可能显示红色
二、配置idea
以下图中红色地方需要勾选

按组合按键 Ctrl + Alt + Shift + / ,弹出菜单,选择

选中后勾选下面内容就可以实现热部署了,重新启动下项目让我们体验下热部署的快了

网友评论