IDEA添加项目工程的热部署插件

在这里插入图片描述

1. 项目模块pom.xml添加相应依赖

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

2. 父类的pom.xml添加插件

<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. 配置Registry

按住CTRL+SHIFT+ALT+/
在这里插入图片描述在这里插入图片描述

5. 重启IDEA

发布了11 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/foundtime/article/details/105539790