美文网首页
idea spring boot热部署

idea spring boot热部署

作者: 非小惰 | 来源:发表于2019-03-01 14:12 被阅读0次

1、file setting 中找到 Build project automatically 自动对工程进行build


image.png
image.png

2、在pom文件中加入热部署信息

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

在build节点中加入

               <configuration>
                   <fork>
                       true
                   </fork>
               </configuration>

如下


image.png

就可以实现热部署啦

相关文章

网友评论

      本文标题:idea spring boot热部署

      本文链接:https://www.haomeiwen.com/subject/hfjduqtx.html