IDEA热部署

1,添加依赖(子模块)

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

2,添加插件(父工程)

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

3,idea设置打勾

 4,在idea中按快捷键   ctrl + shrift + alt + /

 5,重启idea

原文地址:https://www.cnblogs.com/zhulei2/p/13817587.html