为了确保tomcat本身只映射到一个IP上需要配置:
<Connector port="80" maxHttpHeaderSize="8192" [b]address="*.*.*.*"[/b] .../>
如果不加address, 当前的tomcat会占用服务器的所有80端口。
<Connector port="80" maxHttpHeaderSize="8192" [b]address="*.*.*.*"[/b] .../>
如果不加address, 当前的tomcat会占用服务器的所有80端口。