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

 

posted @ 2020-10-14 21:42  风子磊  阅读(121)  评论(0编辑  收藏  举报