1

我在 Windows 7 上本地使用 spring mvc 3.x 和 tomcat 7,我想http://localhost:8080/webapp在工作中向一些营销人员公开,但是当我公开它时,因为http://myhostname:8080/webapp我的同事说他们没有看到任何东西(鼠标滚轮旋转)。

我需要在 Windows 上进行本地设置以将 8080 公开给我的域中的 ppl 以进行 POC?

4

2 回答 2

2

编辑server.xml配置并添加address="0.0.0.0"属性,如下所示:

<Connector port="8080" address="0.0.0.0" maxHttpHeaderSize="8192"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>

它将允许每个人访问您的 tomcat。

如果它不起作用,请检查您的 Windows 防火墙以公开 8080 输出端口。

于 2013-08-07T14:21:42.600 回答
1

please ask your friends to try with your IP address in place of hostname in url. It should work. If thats working, tell members who are accessing the service to add a host entry in their local systems.

Make sure that you all are in the same LAN.

于 2013-08-07T05:21:41.300 回答