Jboss在根上下文中部署 [英] Jboss deploying in root context
本文介绍了Jboss在根上下文中部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是的,我知道 enable-welcome-root = false
,但无法在文件中找到它。使用wildfly final或jboss eap 6.2。在哪儿?
为什么我需要在WEB-INF中添加jboss-web.xml?
Yes, i know about enable-welcome-root=false
, but cant find this in files. Use wildfly final or jboss eap 6.2. Where it is?
And why i need to add jboss-web.xml in WEB-INF?
推荐答案
有问题的文件是standalone.xml,位于以下目录中:
The file in question is standalone.xml and is located in the following directory:
%JBOSS_HOME%/configuration/standalone.xml
您需要在虚拟中添加 enable-welcome-root = false
独立服务器定义:
You need to add enable-welcome-root=false
in your virtual server definition in your standalone:
<virtual-server name="localhost" enable-welcome-root="false">
并使用以下内容创建一个jboss-web.xml文件:
And create a jboss-web.xml file with the following:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
这篇关于Jboss在根上下文中部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文