springboot项目开启热部署

1.在pom.xml中导入依赖

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

2.开启idea热部署设置

打开idea的setting,选择compiler并勾选Build project automatically

3.修改Registry

使用快捷键ctrl+shift+alt+/,选择Registry,勾选如图所示的key

猜你喜欢

转载自blog.csdn.net/qq_36603180/article/details/121577106