当前位置:网站首页>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);
}边栏推荐
- Since his 97, I roll but he...
- [Punctuality Atom STM32 Serial] Chapter 2 STM32 Introduction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
- I am 37 this year, and I was rushed by a big factory to...
- 一道[CSCCTF 2019 Qual]FlaskLight的详解再遇SSTI
- 有坦荡的远方
- leetcode单调栈经典例题——最大矩形
- leetcode二叉树系列(二叉搜索树篇)
- MySQL binlog都有哪些模式?
- leetcode经典例题——56.合并区间
- 有了这篇 Kubernetes 的介绍,它的原理秒懂!
猜你喜欢

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

Redis 内存满了怎么办?这样置才正确!

LeetCode中等题之旋转图像

《福格行为模型》:如何养成好习惯?

【正点原子STM32连载】第一章 本书学习方法 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1

Grafana9.0发布,Prometheus和Loki查询生成器、全新导航、热图面板等新功能!

RL学习笔记(一)

LeetCode简单题之最好的扑克手牌

leetcode经典例题——56.合并区间

v-model原理,在“radio”、“checkbox”、“select”、修饰符
随机推荐
暴力破解-破解 Apache BASIC 认证
MATLAB/Simulink快捷键
他97年的,我既然卷不过他...
ISO14443A读卡流程(作为示例参考)
TiCDC同步延迟问题处理
【C补充】指向指针或函数的指针
MindSpore:损失函数问题
有坦荡的远方
路由/三层交换机DHCP下发地址详解【华为eNSP】
双指针方法
cannot import name ‘import_string‘ from ‘werkzeug‘【bug解决】
After four years of outsourcing, the autumn recruits finally landed
2022-08-02 Analyze RK817 output 32k clock PMIC_32KOUT_WIFI to WiFi module clock register devm_clk_hw_register
基于cRIO-904X搭建Simulink与Labview环境
Cloud function to achieve automatic website check-in configuration details [Web function/Nodejs/cookie]
Shared_preload_libraries cause many syntaxes not supported
抬升市场投资情绪,若羽臣是否还需“自身硬”?
VRRP + MSTP configuration, huawei eNSP experiment 】 【
No module named 'flask_misaka' has been resolved [BUG solution]
ps如何换背景颜色,自学ps软件photoshop2022,3种不同的方式笔记记录