修改eclipse+maven+jetty启动的端口:
查看pom.xml文件:
找到此处
<connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>8080</port> <!--在此处修改端口号--> <maxIdleTime>60000</maxIdleTime> </connector> </connectors>
此时可以在启动后看到:
2014-01-13 10:48:03.515:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server