-rw-r--r--. 1 root root 113895015 7月 10 20:59 new_energy_resources-client-backstage-outer.jar
[root@localhost opt]# find / -name private_assembling-backstage.xml
[root@localhost opt]# jar tf new_energy_resources-client-backstage-outer.jar |grep prop 查看过滤prop
BOOT-INF/classes/application-prod_outer.properties
BOOT-INF/classes/application.properties
META-INF/maven/sgcc.sgec/new_energy_resources-client-backstage-outer/pom.properties
[root@localhost opt]# jar tf new_energy_resources-client-backstage-outer.jar |grep erpo
[root@localhost opt]# jar tf new_energy_resources-client-backstage-outer.jar |grep prop
BOOT-INF/classes/application-prod_outer.properties
BOOT-INF/classes/application.properties
META-INF/maven/sgcc.sgec/new_energy_resources-client-backstage-outer/pom.properties
[root@localhost opt]# jar xvf new_energy_resources-client-backstage-outer.jar BOOT-INF/classes/application-prod_outer.properties 解压jar包中一个文件
已解压: BOOT-INF/classes/application-prod_outer.properties
[root@localhost opt]# ll
总用量 111228
drwxr-xr-x. 3 root root 21 8月 17 17:28 BOOT-INF
-rw-r--r--. 1 root root 113895015 7月 10 20:59 new_energy_resources-client-backstage-outer.jar
[root@localhost opt]# vim BOOT-INF/classes/application-prod_outer.properties
[root@localhost opt]# jar uvf new_energy_resources-client-backstage-outer.jar BOOT-INF/classes/application-prod_outer.properties 更新jar包中一个文件
正在添加: BOOT-INF/classes/application-prod_outer.properties(输入 = 17639) (输出 = 7243)(压缩了 58%)
[root@localhost opt]#