Package com.fireflysource.demo

Source Code of com.fireflysource.demo.App

package com.fireflysource.demo;

import java.io.File;

import com.firefly.server.ServerBootstrap;
import com.firefly.server.http.Config;

/**
* Hello world!
*
*/
public class App {
 
  public static void main(String[] args) throws Throwable {
    String projectHome = new File(App.class.getResource("/").toURI()).getParentFile().getParent();
    String serverHome = new File(projectHome, "/page").getAbsolutePath();
   
    System.out.println(projectHome);
    System.out.println(serverHome);
    Config config = new Config();
    config.setHost("localhost");
    config.setPort(8080);
    config.setServerHome(serverHome);
    ServerBootstrap.start(config);
  }
}
TOP

Related Classes of com.fireflysource.demo.App

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.