maven项目 springboot 热部署详细教程

xiaoxiao2021-02-28  35

热部署过程方式主要分为两种:

1. 通过 spring-boot-devtools

(1)首先在工程项目中添加spring-boot-devtools依赖

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope> </dependency>

(2)在pom.xml文件末尾添加如下配置

<build> <plugins>
转载请注明原文地址: https://www.6miu.com/read-2619744.html

最新回复(0)