idea 配置 热部署

1 , 导入依赖

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

2 , 添加Maven 插件

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

3 ,开启idea 配置在这里插入图片描述

4 ,开启配置 Crtl + Alt +shift + /
在这里插入图片描述
在这里插入图片描述

即可生效

猜你喜欢

转载自blog.csdn.net/weixin_43183496/article/details/107040359