cbl*_*adp 3 java-ee wildfly undertow
使用WildFly 8时,将浏览器指向显示localhost:8080默认welcome-content页面的结果.
我想改变这种行为,以便myapplication.war显示.
我的standalone.xml文件目前包含以下默认配置: -
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
Run Code Online (Sandbox Code Playgroud)
我在JBossDeveloper论坛上发现了一些帖子,建议如下: -
<host name="default-host" alias="localhost" default-web-module="name-of-your.war">
Run Code Online (Sandbox Code Playgroud)
只是添加default-web-module参数似乎不起作用,因为welcome-content页面仍然显示.
从该部分中删除location和filter-ref项目将host停止welcome-content显示的页面,但会导致HTTP 404 - Not found错误.
谁能告诉我如何解决这个问题?
将主机部分更改为以下内容并删除原始问题中描述的位确实有效...
<host name="default-host" alias="localhost" default-web-module="name-of-your.war" />
Run Code Online (Sandbox Code Playgroud)
404 - Not found在使用NetBeans IDE构建项目时,由于部署问题,我收到错误.
使用WildFly管理控制台手动部署war文件后,每个工作都按照我的意愿工作.
| 归档时间: |
|
| 查看次数: |
8034 次 |
| 最近记录: |