linux增量更新

创建临时目录结构

mkdir -p BOOT-INF/classes/cn/tx/paper/controller

复制 class 文件到临时目录

cp PaperRestController.class BOOT-INF/classes/cn/tx/paper/controller/

删除 JAR 包中的旧文件

jar -d -f mainClient-1.0-SNAPSHOT.jar -C BOOT-INF/classes cn/tx/paper/controller/PaperRestController.class

更新 JAR 包

jar uvf mainClient-1.0-SNAPSHOT.jar -C BOOT-INF/classes cn/tx/paper/controller/PaperRestController.class

验证更新

jar tvf mainClient-1.0-SNAPSHOT.jar | grep PaperRestController.class

增量更新命令

相关推荐
C_心欲无痕15 分钟前
ts - tsconfig.json配置讲解
linux·前端·ubuntu·typescript·json
冰西瓜6001 小时前
国科大2025操作系统高级教程期末回忆版
linux
HIT_Weston1 小时前
93、【Ubuntu】【Hugo】搭建私人博客:面包屑(一)
linux·运维·ubuntu
cuijiecheng20182 小时前
Linux下Beyond Compare过期
linux·运维·服务器
喵叔哟2 小时前
20.部署与运维
运维·docker·容器·.net
HIT_Weston2 小时前
92、【Ubuntu】【Hugo】搭建私人博客:侧边导航栏(六)
linux·运维·ubuntu
CodeAllen嵌入式2 小时前
Windows 11 本地安装 WSL 支持 Ubuntu 24.04 完整指南
linux·运维·ubuntu
期待のcode2 小时前
前后端分离项目 Springboot+vue 在云服务器上的部署
服务器·vue.js·spring boot
AI 智能服务3 小时前
第6课__本地工具调用(文件操作)
服务器·人工智能·windows·php
码农小韩4 小时前
基于Linux的C++学习——指针
linux·开发语言·c++·学习·算法