Example 1: Static resources

    The following example demonstrates how to start a WEB server and open static resources in the browser.

WebServer.dml

<?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>

dml --project --web

  • --project
    Used to mark the current directory as the model project directory, and the project name defaults to the name of the current folder.
      
  • --web
    Used to create the WEB-INF/web.xml file.
      
  • --js
    The js parameter is used to copy the webroot/js folder under XWorker to the current directory.

 

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号