当前位置:网站首页>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);
}边栏推荐
- Get the number of cpu cores
- MindSpore:Ascend运行出现问题
- VRRP+MSTP配置详解【华为eNSP实验】
- 注意力机制
- 数据万象内容审核 — 共建安全互联网,专项开展“清朗”直播整治行动
- Detailed explanation of telnet remote login aaa mode [Huawei eNSP]
- 罗克韦尔AB PLC RSLogix5000中定时器指令使用方法介绍
- Fiddler(一)安装
- 用OpenGL绘制winXP版扫雷的笑脸表情
- No module named 'flask_misaka' has been resolved [BUG solution]
猜你喜欢

ps如何换背景颜色,自学ps软件photoshop2022,3种不同的方式笔记记录

.NET深入解析LINQ框架(五:IQueryable、IQueryProvider接口详解)

云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】

交换机链路聚合详解【华为eNSP】

蜜芽CEO刘楠:垂直电商黄金时代已落幕 坚定转型品牌之路

v-model原理,在“radio”、“checkbox”、“select”、修饰符

leetcode二叉树系列(二)

Interview at 14:00 in the afternoon, I came out at 14:08 with my head down, asking too much...

已解决No module named ‘flask_misaka‘【BUG解决】

Apache Druid 实时分析数据库入门介绍
随机推荐
It is found that several WRH tables are locked, what should I do?
三层交换机/路由器OSPF配置详解【华为eNSP实验】
开源一夏 | 查询分页不只有limit,这四种分页方法值得掌握
How Oracle for current library or certain library data on the same server number?
[Punctuality Atom STM32 Serial] Chapter 4 STM32 First Experience Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
学习在php中将特大数字转成带有千/万/亿为单位的字符串
架构设计杂谈
学习使用php把stdClass Object转array的方法整理
GBsae 8 c database using an error, how to do?
请问下Flink SQL如何写hologres分区表?我想要每天一个分区
菲沃泰科创板上市:市值123亿 宗坚赵静艳夫妇身价76亿
2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试
去掉js代码文件所有注释
如何快速将Zabbix5.0升级至6.0?
请问同一个oracle cdc表,如果flink job重新提交,是会全量读取一遍源数据还是增量呢?
NAT/NAPT地址转换(内外网通信)技术详解【华为eNSP】
罗克韦尔AB PLC RSLogix5000中定时器指令使用方法介绍
cannot import name ‘import_string‘ from ‘werkzeug‘【bug解决】
I am 37 this year, and I was rushed by a big factory to...
软件工程国考总结——判断题