2021 idea热部署
2021 idea热部署
-
依赖
<!-- 热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
-
导入 maven 插件
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <!-- 热部署插件--> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.2.6.RELEASE</version> <configuration> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
-
打开设置