JTable
Oracle
public class JettyStarter { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { long begin = System.currentTimeMillis(); Connector connector = new SelectChannelConnector(); connector.setPort(Integer.getInteger("jetty.port", 8080).intValue()); // 设置Web环境 WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/sample"); webapp.setWar("websample.war"); Server server = new Server(); server.setConnectors( new Connector[] { connector }); server.setHandler(webapp); server.start(); System.out.println("Jetty Server started, use " + (System.currentTimeMillis() - begin) + " ms"); } }