在pom.xml 添加这一段

<!-- 热部署模块 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
            <scope>true</scope>
        </dependency>

SpringBoot 热部署配置

Shift+Ctrl+A

SpringBoot 热部署配置SpringBoot 热部署配置

相关文章: