jetty布署war_jetty部署war包

Jetty部署WAR包类似于Tomcat,只需将WAR文件复制到webapps目录。不过,Jetty不会在webapps下解压文件。为指定解压目录,你可以设置java.io.tmpdir系统属性,创建"work"子目录,或者在WebAppProvider或WebAppContext上配置tempDir或tempDirectory属性。
摘要由CSDN通过智能技术生成

与tomcat类似,直接拷贝war到webapps目录即可,不同的是解压文件不会存放到webapps下。

需要做一些额外配置,才能找到正确解压目录

Q: How to change the extracted directory?

A: You have few choices.

1) Specify your own java.io.tmpdir java system property location for jetty to use.

$ java -Djava.io.tmpdir=/path/to/my/new/temp/ -jar start.jar

2) Create a "work" directory under the ${jetty.home} path (whereever that is).

That will cause Jetty to use that work directory instead of whatever the java.io.tmpdir property is set to.

3) Specify the tempDir attribute on the WebAppProvider deployments.

Only valid for war file deployment scenarios, NOT valid for context based deployment.

If you have etc/jetty-webapps.xml in your start.ini you have war file deployments enabled.

Edit the ${jetty.home}/etc/jetty-webapps.xml file and add 1 more attribute on the WebAppProvider.

/path/to/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值