Spring Boot Devtools 热部署依赖

1.添加依赖

       <!--热部署-->
        <dependency>
             <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
        </dependency>

2.重新启动项目

3.测试

在Intellij IEDA 中,修改文件后都是自动保存,默认不会自动编译文件,
需要手动编译按 Ctrl + F9
原文地址:https://www.cnblogs.com/guangzhou11/p/12404606.html