code: public void start(){
  		ServletInfo servletInfo = Servlets.servlet(ActionServlet.class).addMapping("/*");
  		
  		String contextPath = UndertowSetting.getSetting().getStr("contextPath", "/");
  		
  		DeploymentInfo deploymentInfo = Servlets.deployment()
  				.setClassLoader(ClassUtil.getClassLoader())
  				.setDeploymentName(UndertowSetting.getSetting().getStr("deploymentName", "hulu.war"))
  				.setContextPath(contextPath)
  				.addServlets(servletInfo);
  		
  		DeploymentManager manager = Servlets.defaultContainer().addDeployment(deploymentInfo);
  		manager.deploy();
  		
  		HttpHandler httpHandler = null;
  		try {
  			httpHandler = manager.start();
  		} catch (ServletException e) {
  			throw new ServerRuntimeException(e);
  		}
  		
  		PathHandler handler = Handlers.path(Handlers.redirect(contextPath)).addPrefixPath(contextPath, httpHandler);
  		
  		String host = UndertowSetting.getSetting().getStr("host", "localhost");
  		int port = UndertowSetting.getSetting().getInt("port", 8090);
  		
  		Undertow server = Undertow.builder()
  				.addHttpListener(port, host)
  				.setHandler(handler)
  				.build();
  		
  		server.start();
  		log.info("Undertow Server for Hulu Listen on {}: {}", host, port);
  	}
docs: 启动