gpt4 book ai didi

jboss - Jboss中的上下文路径

转载 作者:行者123 更新时间:2023-12-04 03:47:02 27 4
gpt4 key购买 nike

目前在JBOSS中部署了一场 war 。如果我想弄清楚Jboss中WAR的上下文路径,应该在哪里查看? Server.xml?

最佳答案

如果您的应用程序打包为WAR文件,则可以在WAR文件的WEB-INF文件夹下创建jboss-web.xml,并在jboss-web.xml中指定上下文根,如下所示-

<jboss-web>
<context-root>MyWebAppContext</context-root>
</jboss-web>

如果您的应用程序打包为EAR文件,则可以像这样在EAR的META-INF/application.xml中指定context-root
<module>  
<web>
<web-uri>MyWAR.war</web-uri>
<context-root>MyWebAppContext</context-root>
</web>
</module>

关于jboss - Jboss中的上下文路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2046604/

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