gpt4 book ai didi

linux - 我如何确定在 jetty 中运行 jetty.base 和 jetty.home 的顺序?

转载 作者:太空狗 更新时间:2023-10-29 12:14:13 30 4
gpt4 key购买 nike

我正在使用 Jetty 9,我有 jetty.base 和 jetty.home,我想知道我什么时候启动 jetty,它以什么样的顺序调用 jetty.base 和 jetty.home,我的意思是一开始它将从 jetty.base 或 jetty.home 读取库?或者它检查属性表单 jetty.base 然后从 jetty.home 检查,反之亦然,如果你知道任何有用的文章,或者任何在我的 jetty 内测试它的方法,我将不胜感激。

最佳答案

使用--list-config 选项并查看输出。它会告诉您顺序。

$ java -jar /opt/jetty/jetty-distribution-9.3.0.v20150612/start.jar --list-config

Java Environment:
-----------------
java.home = /home/joakim/java/jvm/jdk-8u45/jre
java.vm.vendor = Oracle Corporation
java.vm.version = 25.45-b02
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.info = mixed mode
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_45-b14
java.io.tmpdir = /tmp
user.dir = /home/joakim/static-base
user.language = en
user.country = US

Jetty Environment:
-----------------
jetty.version = 9.3.0.v20150612
jetty.tag.version = master
jetty.home = /opt/jetty/jetty-distribution-9.3.0.v20150612
jetty.base = /home/joakim/static-base

Config Search Order:
--------------------
<command-line>
${jetty.base} -> /home/joakim/static-base
${jetty.home} -> /opt/jetty/jetty-distribution-9.3.0.v20150612


JVM Arguments:
--------------
(no jvm args specified)

System Properties:
------------------
(no system properties specified)

Properties:
-----------
jetty.port = 8080

Jetty Server Classpath:
-----------------------
Version Information on 11 entries in the classpath.
Note: order presented here is how they would appear on the classpath.
changes to the --module=name command line options will be reflected here.
0: 3.1.0 | ${jetty.home}/lib/servlet-api-3.1.jar
1: 3.1.0.M0 | ${jetty.home}/lib/jetty-schemas-3.1.jar
2: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-http-9.3.0.v20150612.jar
3: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-server-9.3.0.v20150612.jar
4: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-xml-9.3.0.v20150612.jar
5: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-util-9.3.0.v20150612.jar
6: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-io-9.3.0.v20150612.jar
7: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-security-9.3.0.v20150612.jar
8: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-servlet-9.3.0.v20150612.jar
9: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-webapp-9.3.0.v20150612.jar
10: 9.3.0.v20150612 | ${jetty.home}/lib/jetty-deploy-9.3.0.v20150612.jar

Jetty Active XMLs:
------------------
${jetty.home}/etc/jetty.xml
${jetty.home}/etc/jetty-http.xml
${jetty.home}/etc/jetty-deploy.xml

注意到标题为“配置搜索顺序”的部分了吗?

关于linux - 我如何确定在 jetty 中运行 jetty.base 和 jetty.home 的顺序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31375634/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com