简体   繁体   English

wildfly 9的standalone.xml文件中主机标签中的default-web-module属性的用途是什么?

[英]what is the purpose of default-web-module attribute in host tag in standalone.xml file of wildfly 9?

am working on wildfly, 正在研究野蝇,

in standalone.xml file i have configured hosts as 在standalone.xml文件中,我已将主机配置为

standalone.xml : standalone.xml:

<host name="wildflyhost1" alias="test.test1.com" default-web-module="test1.war"/>
<host name="wildflyhost2" alias="test.test2.com" default-web-module="test2.war"/>

My Question is, 我的问题是

default-web-module="test2.war" is mandatory ? default-web-module =“ test2.war”是强制性的吗?
what happens when the war file is not available in server deployments ? 当服务器部署中没有war文件时会发生什么?

Thanks in advance. 提前致谢。

default-web-module="test2.war" is mandatory ? default-web-module =“ test2.war”是强制性的吗?

No it is not mandatory, it defaults to ROOT.war if not configured. 不,它不是强制性的,如果未配置,则默认为ROOT.war。 This config option allows you to deploy application "test2.war" to "/" context as by default and by servlet spec it would get bound to /test2 此配置选项允许您将应用程序“ test2.war”默认部署到“ /”上下文,并且通过servlet规范将其绑定到/ test2

what happens when the war file is not available in server deployments ? 当服务器部署中没有war文件时会发生什么?

Noting, it works either way, it just tells server if it finds deployment by this name to bound it to "/" context. 注意,无论哪种方式都可以工作,它只是告诉服务器是否通过该名称找到将其绑定到“ /”上下文的部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从standalone.xml wildfly中读取KeyStore文件路径 - How to Read KeyStore File Path From standalone.xml wildfly 在standalone.xml文件中要进行哪些更改以将特定目录排除在自动部署到JBoss Server中之外[Wildfly 9xx] - What changes to be made in standalone.xml file to exclude a particular directory from getting auto deployed in JBoss Server[Wildfly 9xx] 如何在 Wildfly Standalone.xml 中将不同的日志级别记录到同一类别的不同日志文件中? - How to log different log level to different log file from the same category in Wildfly standalone.xml? 从Wildfly系统读取配置参数(standalone.xml) - Read configuration parameters from Wildfly system (standalone.xml) Glassfish 无法在根目录部署,因为声明了 default-web-module - Glassfish unable to deploy at root because default-web-module is declared Wildfly 8.1-设置系统属性而不使用standalone.xml - Wildfly 8.1 - set system property without standalone.xml Maven wildfly-maven-plugin自定义standalone.xml - Maven wildfly-maven-plugin custom standalone.xml Standalone.xml 中的 WildFly 10 CORS 设置被忽略 - WildFly 10 CORS settings in standalone.xml are ignored 在wildfly 14 standalone.xml中而不是standalone-ha.xml中配置Infinispan - Configure Infinispan in wildfly 14 standalone.xml instead of standalone-ha.xml 是什么目的 <filter> web.xml中的标签? - What is the purpose of <filter> tag in web.xml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM