当前位置:网站首页>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);
}
边栏推荐
- 户外徒步旅行
- 交换机链路聚合详解【华为eNSP】
- 数据万象内容审核 — 共建安全互联网,专项开展“清朗”直播整治行动
- cannot import name ‘import_string‘ from ‘werkzeug‘【bug解决】
- [Punctuality Atom STM32 Serial] Chapter 2 STM32 Introduction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
- MindSpore:Ascend运行出现问题
- How to restore the Youxuan database with only data files
- v-model原理,在“radio”、“checkbox”、“select”、修饰符
- leetcode每天5题-Day06
- 将jpg图片转换成yuv420(NV12)数据文件
猜你喜欢
[Punctuality Atom STM32 Serial] Chapter 3 Development Environment Construction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1
Detailed explanation of NAT/NAPT address translation (internal and external network communication) technology [Huawei eNSP]
Cloud function to achieve automatic website check-in configuration details [Web function/Nodejs/cookie]
三层交换机配置MSTP协议详解【华为eNSP实验】
抬升市场投资情绪,若羽臣是否还需“自身硬”?
Could you please talk about how the website is accessed?[Interview questions in the web field]
【正点原子STM32连载】第一章 本书学习方法 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
LeetCode简单题之最好的扑克手牌
路由/三层交换机DHCP下发地址详解【华为eNSP】
交换机链路聚合详解【华为eNSP】
随机推荐
使用ClickHouse分析COS的清单和访问日志
命里有时终须有--记与TiDB的一次次擦肩而过
recursive thinking
【正点原子STM32连载】第二章 STM32简介 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
v-model原理,在“radio”、“checkbox”、“select”、修饰符
暴力破解-破解 Apache BASIC 认证
LVGL的多语言转换工具--字体设置的好助手
Unity3D data encryption
去掉js代码文件所有注释
《福格行为模型》:如何养成好习惯?
MindSpore:【model_zoo】【resnet】尝试用THOR优化器运行时报cannot import name ‘THOR‘
Cloud function to achieve automatic website check-in configuration details [Web function/Nodejs/cookie]
关于DSP驱动外挂flash
About Oracle RAC 11g rebuilding the disk group
MindSpore:MindSpore GPU版本安装问题
学习使用php把stdClass Object转array的方法整理
三层交换机配置MSTP协议详解【华为eNSP实验】
请问下Flink SQL如何写hologres分区表?我想要每天一个分区
PD 源码分析- Checker: region 健康卫士
有了这篇 Kubernetes 的介绍,它的原理秒懂!