[英]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.