Spring boot 开发中热部署配置(只需两步)

时间:2022-07-22
本文章向大家介绍Spring boot 开发中热部署配置(只需两步),主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

第一步:添加devtools依赖

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

要确保依赖成功导入

第二步,打开设置(ctrl+alt+s),搜索Compiler勾选上Build project automatically