Jetty is a WEB container that can be embedded into Java applications. Jetty is an Eclipse project, official website address: https://eclipse.dev/jetty/.
Jetty has been made into an object model, and the Jetty server can be started through configuration.
<?xml version='1.0' encoding='utf-8'?> <JettyServer name="WebServer" descriptors="xworker.jetty.JettyServer" port="8080"> <Handlers> <WebAppContext name="WebAppContext" contextPath="/" webApp="./" resourceBase="./" dirAllowed="true"/> </Handlers> </JettyServer>
For more examples, please see Example-WEB-WebServer.
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号