idea2019.2+springboot2.2.1版本配置热部署

环境:

  IDE:idea2019.2

  项目框架:springboot2.2.1

配置热部署过程:

pom.xml:

<!--spring boot热部署-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>  <!-- 这个需要为 true -->
        </dependency>
<plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork><!-- 没有该配置,devtools 不生效 -->
                    <addResources>true</addResources>
                    <outputDirectory>${project.build.directory}</outputDirectory>
                </configuration>
            </plugin>

next:

热部署配置

 next:

next:

next:

配置完成,重新启动。

posted @ 2019-11-18 16:18  {{unidentified}}  阅读(1732)  评论(0编辑  收藏  举报