当前位置:网站首页>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边栏推荐
- OmniPeek packet capturing tool
- Full solution of JDBC API
- log4j2基础配置
- 360 degree drag panorama plug-in tpanorama.js
- Detailed explanation of pipeline pipeline mechanism in redis
- activemq--异步投递
- [arm] Xintang nuc977 transplants wk2124 drive
- 【Nacos】NacosClient在服务注册时做了什么
- ActiveMQ -- dead letter queue
- PHP date() function does not support processing numbers greater than 2147483648? "Suggested collection"
猜你喜欢

Sticky.js page scrolling div fixed position plug-in

Programmers can't SQL? Ashes Engineer: all waiting to be eliminated! This is a must skill!

Silicon Valley classroom lesson 15 - Tencent cloud deployment
![[stl]list Simulation Implementation](/img/92/2a78382700c1ebf299c6505d962c9c.png)
[stl]list Simulation Implementation

idea实用tips---如今将pom.xml(红色)改为pom.xml(蓝色)

Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL

idea中将lib目录下的jar包加入到项目中

Uniapp intercepts route jumps through addinterceptor to control whether the page needs to log in

How to avoid duplicate data when the database is high and distributed

What version of Oracle10g single instance database is better to upgrade to? Ask for suggestions
随机推荐
Write two channel (stereo) immediately Wav file
『每日一问』LockSupport怎么实现线程等待、唤醒
『每日一问』怎么实现一个正确的双重检查锁定
360 degree drag panorama plug-in tpanorama.js
分享一个避免递归的部门设计方法
SSM高级整合
Wechat applet obtains the data of ---- onenet and controls the on-board LED of STM32
Redis的十大常见应用场景
C#语言和SQL Server数据库技术
registration status: 204
OmniPeek packet capturing tool
The garbage classification data set used in the excellent Yolo target detection training is shared - about 3000 labeled
保姆级Scanner类使用详解
activemq--延迟投递和定时投递
SQL injection
[learn rust together] a preliminary understanding of rust package management tool cargo
activemq--可持久化机制之JDBC的journal
Kubedm introduction
JDBC的API解析
28. Slot