当前位置:网站首页>IDEA启动热部署
IDEA启动热部署
2022-08-04 09:22:00 【萧篱衣】
一、手工启动
1. 开启开发者工具
<!-- 热部署热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>2. 激活热部署:
Ctrl + F9
3. 关于热部署
重启(Restart):自定义开发代码,包含类、页面、配置文件等,加载位置restart类加载器
重载(ReLoad):jar包,加载位置base类加载器
注意:热部署仅仅加载当前开发者自定义开发的资源,不加载jar资源
二、自动启动
1. 设置自动构建项目

2. Ctrl+Shift+Alt + /


新版本IDEA,这个设置在Settings中的Advanced Settings中,勾选Allow auto-make to...即可。

三、热部署范围配置
默认不触发重启的目录列表:
/META-INF/maven
/META-INF/resources
/resources
/static
/public
/templates
自定义不参与重启排除项
devtools:
restart:
#设置不参与热部署的文件或文件夹
exclude: static/**,public/**,config/application.yml四、关闭热部署
设置高优先级属性禁用热部署
public static void main(String[] args) {
System.setProperty("spring.devtools.restart.enabled","false");
SpringApplication.run(Springboot12HotDeployApplication.class, args);
}边栏推荐
- 学习在微信小程序中判断url的文件后缀格式
- 《福格行为模型》:如何养成好习惯?
- JSP基本语法
- It is found that several WRH tables are locked, what should I do?
- Shared_preload_libraries cause many syntaxes not supported
- 蜜芽CEO刘楠:垂直电商黄金时代已落幕 坚定转型品牌之路
- Wang Shuang's Assembly Language Chapter 4: The First Program
- leetcode动态规划经典例题——53.最大子数组和
- Apache APISIX 2.15 版本发布,为插件增加更多灵活性
- TiCDC同步延迟问题处理
猜你喜欢

leetcode二叉树系列(二叉搜索树篇)

Libtomcrypt AES 加密及解密

MindSpore:【mindinsight】【Profiler】用execution_time推导出来的训练耗时远小于真实的耗时

LeetCode简单题之最好的扑克手牌
![一道[CSCCTF 2019 Qual]FlaskLight的详解再遇SSTI](/img/98/8b2359b7b99da9e50821cdaaf5e47d.png)
一道[CSCCTF 2019 Qual]FlaskLight的详解再遇SSTI

数据万象内容审核 — 共建安全互联网,专项开展“清朗”直播整治行动

TiFlash 源码阅读(五) DeltaTree 存储引擎设计及实现分析 - Part 2

开源一夏 | 查询分页不只有limit,这四种分页方法值得掌握

TiDB升级与案例分享(TiDB v4.0.1 → v5.4.1)

PD 源码分析- Checker: region 健康卫士
随机推荐
使用ClickHouse分析COS的清单和访问日志
I am 37 this year, and I was rushed by a big factory to...
recursive thinking
记录十条工作中便利的API小技巧
Producer and Consumer Problems in Concurrent Programming
去掉js代码文件所有注释
Anton Paar安东帕密度计比重计维修DMA35性能参数
MindSpore:损失函数问题
Apache Druid 实时分析数据库入门介绍
Oracle怎么获取当前库或者同一台服务器上某几个库的数据总行数?
有了这篇 Kubernetes 的介绍,它的原理秒懂!
Grafana9.0发布,Prometheus和Loki查询生成器、全新导航、热图面板等新功能!
学习在php中将特大数字转成带有千/万/亿为单位的字符串
关于技术学习的6个观点
学习在微信小程序中判断url的文件后缀格式
After four years of outsourcing, the autumn recruits finally landed
How Oracle for current library or certain library data on the same server number?
MATLAB/Simulink快捷键
Anton Paar Anton Paar Density Meter Hydrometer Repair DMA35 Performance Parameters
【云驻共创】HCSD 大咖直播–就业指南