您的位置:首页 > 其它

wildfly作为容器开发配置

2016-04-07 11:32 357 查看
wildfly版本:wildfly-9.0.1.Final

1、找到wildfly-9.0.1.Final\standalone\configuration\standalone.xml文件

找配置:

<interface name="public">

            <inet-address value="${jboss.bind.address:127.0.0.1}"/>

</interface>

在其下面增加

<interface name="any">

            <any-address/> <!--在9.1以后不支持<any-ipv4-address/>和<any-ipv6-address/>-->

</interface>



<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

修改为

<socket-binding-group name="standard-sockets" default-interface="any" port-offset="${jboss.socket.binding.port-offset:0}">

增加修改JSP不需要重启服务器

找到配置

<servlet-container name="default">

                <jsp-config/>

                   

                <websockets/>

</servlet-container>

在配置中的jsp-config中增加属性:development="true"

<servlet-container name="default">

                <!--<jsp-config/> -->

                    <jsp-config development="true" />

                <websockets/>

 </servlet-container>

修改端口

找到:

<socket-binding name="http" port="${jboss.http.port:8080}"/>

将端口号修改为:8081
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: