springboot项目idea热部署 springboot项目idea热部署的教程详解

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

springboot项目idea热部署 springboot项目idea热部署的教程详解

sfencs   2021-02-03 我要评论
想了解springboot项目idea热部署的教程详解的相关内容吗,sfencs在本文为您仔细讲解springboot项目idea热部署的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:springboot项目idea热部署,springboot,idea热部署,下面大家一起来学习吧。

1.添加依赖

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

2.开启自动编译

3.ctrl+shifi+alt+/

点击registry

选择compiler autoMake allow when app running

接下来在你进行项目修改切换到浏览器时就会发现springboot重新加载了

4.排除热部署范围

将不需要热部署的路径定义到配置文件中

spring.devtools.restart.exclude=static/**,public/**

总结

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们