首页 > 代码库 > spring boot热部署

spring boot热部署

1、在pom文件中增加如下内容

 <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-devtools</artifactId>            <optional>true</optional>        </dependency>
<build>        <plugins>            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>                <configuration>                    <fork>true</fork>                </configuration>            </plugin>        </plugins>    </build>

2、修改的代码需要重新编译,

build-->Recompile 或 build-->Rebuild Project

spring boot热部署