jetty7修改默认端口

我不希望通过启动参数的形式修改,所以使用修改配置文件的方法。

<configuration>
                    <connectors>
                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
                            <port>80</port>
                        </connector>
                    </connectors>
                    ......
</configuration>

如果需要https实现类是:org.eclipse.jetty.server.ssl.SslSocketConnector

See:http://wiki.eclipse.org/Jetty/Starting/Porting_to_Jetty_7#Startup_Options

猜你喜欢

转载自radiumxie.iteye.com/blog/1835868