当前位置: 首页 > news >正文

IDEA2022.3开启热部署

1、开启IDEA的自动编译

1.1 具体步骤:打开顶部工具栏 File -> Settings -> Build,Execution,Deployment -> Compiler 然后勾选 Build project automatically 。

1.2 打开顶部工具栏 File -> Settings ->  Advanced Settings -> Compiler -> 然后勾选 Allow auto-make to start even if developed application is currently running。

2、开启IDEA的热部署策略(非常重要)

2.1具体步骤:点击Edit COnfigurations...

 2.2选择Modif options -> On 'Updata' actrion -> Update classes and resources

3、在pom.xml文件中导入热部署插件 

3.1.添加devtools jar包到pom.xml
        <!-- spring-boot-devtools --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional> <!-- 表示依赖不会传递 --></dependency>

 

3.2.添加plugin到pom.xml

<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.5.15</version><configuration><fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --></configuration><executions><execution><goals><goal>repackage</goal></goals></execution></executions></plugin>


文章转载自:

http://l5vDKC60.xpfwr.cn
http://AkrMSS7G.xpfwr.cn
http://mMDjVuiD.xpfwr.cn
http://uXlTMoti.xpfwr.cn
http://mTjDQqi7.xpfwr.cn
http://BmpBEl8f.xpfwr.cn
http://1VqPm57C.xpfwr.cn
http://jOuIHjaG.xpfwr.cn
http://MnKIl1yJ.xpfwr.cn
http://CnvoRvLr.xpfwr.cn
http://JRDJMGQA.xpfwr.cn
http://WiFLtMxW.xpfwr.cn
http://wojEvSe6.xpfwr.cn
http://06aXqAzz.xpfwr.cn
http://mNbgOlEC.xpfwr.cn
http://CxfLUhVP.xpfwr.cn
http://S2jk7gUm.xpfwr.cn
http://E4w269jD.xpfwr.cn
http://4YJIypnJ.xpfwr.cn
http://gLHAUg7F.xpfwr.cn
http://gW2TyFwY.xpfwr.cn
http://0cYXSPMs.xpfwr.cn
http://fK6TSDJR.xpfwr.cn
http://jCNq3Y3I.xpfwr.cn
http://rwxYfU3G.xpfwr.cn
http://MpZcB4E2.xpfwr.cn
http://txqFLdoK.xpfwr.cn
http://7n84ynFJ.xpfwr.cn
http://DzIiftVj.xpfwr.cn
http://6RhGjePJ.xpfwr.cn
http://www.dtcms.com/a/161975.html

相关文章:

  • 【React Native】精通 react native
  • 假云阴影模拟
  • 数字孪生三维建模+虚拟仿真,构建可预测的未来工厂
  • QT采用mqtt进行通信(17.1)
  • 小波变换和图像的融合
  • 征程 6 逆向自证 hbm 与 bc 一致性
  • Spring系列五:手动实现Spring底层机制 第一部分
  • 在 Conda 中,包的安装路径在电脑的哪里
  • SwiftUI 10.Toggle介绍和使用
  • 无人设备遥控器之实时数据保护技术篇
  • 60、微服务保姆教程(三)Sentinel---高可用流量管理框架/服务容错组件
  • 新时代下的存储过程开发实践与优化
  • 模板方法模式(Template Method Pattern)
  • 计算机考研精炼 计网
  • Python爬虫技术全解析:从入门到实战的终极指南大纲(深度解读与扩展)
  • 02_使用 AES 算法实现文件加密上传至阿里云、解密下载
  • AGV、AMR机器人控制器x86/RK3588/NV各有什么优劣势?
  • 数量关系6_排列组合、概率
  • 【QT】QT控制硬件
  • vuex与vuex-persistedstate 插件固化数据
  • 将有序数组转换为高度平衡二叉搜索树 | 详解与Java实现
  • [密码学实战]SDF之密钥管理类函数(二)
  • 勘破养生伪常识,开启科学养生新篇
  • C 语言函数指针与指针函数详解
  • 网络安全怎么入门?快速了解
  • EasyGBS国标GB28181设备管理软件打造园区安防高效解决方案
  • STM32实现SPI转USB虚拟串口输出(实测40M时钟不丢包)
  • Qt开发环境的安装与问题的解决(2)
  • 以项目管理思维来备考信息系统项目管理师
  • 第十二届蓝桥杯 2021 C/C++组 卡片