将war文件解压到指定目录

将war文件解压到指定目录

问:如何将.war文件解压到指定目录?

答:jar命令没有这样的选项.

eg:将abc.war解压到当前文件夹?

答:进入目标文件即abc.war文件所在的文件夹,按住shift键并在该文件夹空白处点击鼠标右键,选择”在此处打开命令窗口(W)”,调出命令窗口,键入命令:jar xvf abc.war,按回车键即可完成解压.(解压后文件夹内会比较乱,尽量将.war文件解压后的各文件整理到.war同名空文件夹下)

将war文件解压到指定目录

补充:
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files …
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -e  specify application entry point for stand-alone application 
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file

  将war文件解压到指定目录

If any file is a directory then it is processed recursively.
The manifest file name, the archive file name and the entry point name are
specified in the same order as the ‘m’, ‘f’ and ‘e’ flags.

Example 1: to archive two class files into an archive called classes.jar: 
       jar cvf classes.jar Foo.class Bar.class 
Example 2: use an existing manifest file ‘mymanifest’ and archive all the
           files in the foo/ directory into ‘classes.jar’: 
       jar cvfm classes.jar mymanifest -C foo/ .

 

总结:dos命令 jar xvf abc.war

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/108979.html原文链接:https://javaforall.net

(0)
上一篇 2021年9月15日 下午8:00
下一篇 2021年9月15日 下午9:00


相关推荐

  • 生成Android App签名(为APK签名)

    生成Android App签名(为APK签名)

    2021年8月19日
    68
  • 【程序员健康指南】读书笔记

    【程序员健康指南】读书笔记

    2022年3月5日
    65
  • allocatememory(an out of memory)

    仅作为记录,大佬请跳过。仅需减小batchsize展示:即可运行。注博主的这个程序减小batchsize就行了,可能不同的博友们的程序不一样,也有的大佬博主使用不计算梯度或释放内存的方式不计算梯度——传送门withtorch.no_grad()释放内存——传送门ifhasattr(torch.cuda,’empty_cache’): torch.cuda.empty_cache()…

    2022年4月10日
    53
  • 积化和差和差化积公式推导_三角函数的极化和差

    积化和差和差化积公式推导_三角函数的极化和差和差化积公式:sinx+siny=2sinx+y2cosx−y2\sinx+\siny=2\sin\frac{x+y}{2}\cos\frac{x-y}{2}sinx−siny=2cosx+y2sinx−y2\sinx-\siny=2\cos\frac{x+y}{2}\sin\frac{x-y}{2}cosx−cosy=2cosx+y2cosx−y2\cos

    2025年7月14日
    5
  • Java中使用double转BigDecimal的问题

    Java中使用double转BigDecimal的问题先上结论:不要直接用double变量作为构造BigDecimal的参数。线上有这么一段Java代码逻辑:1,接口传来一个JSON串,里面有个数字:57.3。2,解析JSON并把这个数字保存在一个float变量。3,把这个float变量赋值给一个BigDecimal对象,用的是BigDecimal的double参数的构造:newBigDecimal(doubleval)4,把这个BigDecimal保存到MySQL数据库,字段类型是decimal(15,2)。…

    2022年5月24日
    141
  • 无人机超远距离WiFi传输,CV5200无线通信模组,无线音视频传输方案「建议收藏」

    无人机超远距离WiFi传输,CV5200无线通信模组,无线音视频传输方案「建议收藏」在绝大多数任务场合都需要在远离现场的情况下,实时、可靠的观察或获取现场图像及视频,而此时无人机图传系统就会显现出它的重要作用。什么是无人机图传呢?将现场无人机所搭载的摄像机拍摄到的视频以无线方式实时传送到远距离后方的一种无线电子传输产品。因此无人机图传也被称为无人机的“眼睛”。智能cv5200双向无线通信系统,基于802.11无线通信标准,采用自身开发的LR-WiFi(远距离WiFi)私有协议,具备ML,MRC,LDPC,MIMO-OFDM等高级无线技术。具有传输距离远、可组网、抗干扰性强、

    2022年10月3日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号