当前位置:网站首页>idea 热部署
idea 热部署
2022-07-25 09:17:00 【gzu_01】
目录
1.手工启动热部署
首先开启开发者工具(在pom.xml导入pring-boot-devtools的坐标)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>在maven中看到开发者工具已被导入到该项目中

手动激活
快捷键:Ctrl+F9
或直接点击Build -》Build Project

需要注意的是 该热部署仅仅仅仅加载当前开发者自定义开发的资源 不加载jar资源
2.自动启动热部署
首先在setting->build ,Excution,Deployment->Compiler->Build projectautomatically

然后在程序中使用 ctrl+alt+shift+/ 后选择Registry

选择compiler.automake.allow.when.app.running

激活方式:idea失去焦点5s后启动热部署
3.热部署配置范围
默认不出发重启的目录列表
/META-INF/maven
/META-INF/resources
/resources
/static
/public
/templates
在配置文件application.yml中设置热部署排除范围
devtools:
restart:
#热部署排除范围
exclude: static/**,public/**4.关闭热部署
将enabled设为false 关闭热部署
devtools:
restart:
#热部署排除范围
exclude: static/**,public/**
#关闭热部署
enabled: false边栏推荐
- [deep learning] overview | the latest progress of deep learning
- redis操作利用游标代替keys
- activemq--可持久化机制之KahaDB
- Shell script
- Network principle (2) -- network development
- Detailed explanation of pipeline pipeline mechanism in redis
- Kubedm introduction
- Ten thousand words long, one word thoroughly! Finally, someone has made business intelligence (BI) clear
- 黑马程序员JDBC
- 保姆级Scanner类使用详解
猜你喜欢

保姆级Scanner类使用详解

将list集合的某一字段拼接单个String

A picture to quickly understand envoyfilter in istio

Canvas dynamic picture avatar shaking JS special effect

Network principle (2) -- network development
![[arm] Xintang nuc977 transplants wk2124 drive](/img/0c/fa21d7a44e0263dde4d3135a78818f.png)
[arm] Xintang nuc977 transplants wk2124 drive

JMeter test plan cannot be saved solution

The operation cannot be completed because a folder or file in it is already open in another program
![[stl]list Simulation Implementation](/img/92/2a78382700c1ebf299c6505d962c9c.png)
[stl]list Simulation Implementation

Shell脚本
随机推荐
ActiveMQ -- dead letter queue
Comments on specific applications of camera
API parsing of JDBC
mysql中的数据结果排名
Activemq-- asynchronous delivery
『每日一问』ReentrantLock加锁解锁
Write two channel (stereo) immediately Wav file
The operation cannot be completed because a folder or file in it is already open in another program
[C language] dynamic memory management, flexible array
Redis-哨兵,主从部署详细篇
JS touch screen game source code ice and snow journey
Activemq-- delayed delivery and scheduled delivery
Silicon Valley classroom lesson 12 - official account on demand course and live broadcast management module
【Nacos】NacosClient在服务注册时做了什么
This ten-year content industry infrastructure company is actually an invisible Web3 pioneer
将list集合的某一字段拼接单个String
activemq--可持久化机制之KahaDB
2022-7-14 JMeter pressure test
Redis sentry, master-slave deployment details
[stl]list Simulation Implementation