Package com.ketayao.utils

Examples of com.ketayao.utils.JettyServer


  public static void main(String[] args) throws Exception {
    // 设定Spring的profile
    System.setProperty("spring.profiles.active", "production");

    JettyServer jettyServer = new JettyServer(PORT, CONTEXT);
    jettyServer.setTldJarNames(TLD_JAR_NAMES);
   
    // 启动Jetty
    try {
      jettyServer.start();
     
      System.out.println("启动成功,请使用该路径访问系统:" + BASE_URL);
      System.out.println("在控制台输入'r'重新加载应用,输入'q'退出jetty程序!");

      while (true) {
        char c = (char) System.in.read();
        if (c == 'r') {
          jettyServer.reloadContext();
        } else if (c == 'q') {
          break;
        }
      }
    } catch (Exception e) {
View Full Code Here


 
  public static void main(String[] args) throws Exception {
    // 设定Spring的profile
    System.setProperty("spring.profiles.active", "production");

    JettyServer jettyServer = new JettyServer(PORT, CONTEXT);
    jettyServer.setTldJarNames(TLD_JAR_NAMES);
   
    jettyServer.addOtherResources(KETA_CUSTOM_COMPONENT_RESOURCES);
    jettyServer.addOtherClasses(KETA_CUSTOM_COMPONENT_CLASSES);
    // 启动Jetty
    try {
      jettyServer.start();
     
      System.out.println("启动成功,请使用该路径访问系统:" + BASE_URL);
      System.out.println("在控制台输入'r'重新加载应用,输入'q'退出jetty程序!");

      while (true) {
        char c = (char) System.in.read();
        if (c == 'r') {
          jettyServer.reloadContext();
        } else if (c == 'q') {
          break;
        }
      }
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.ketayao.utils.JettyServer

Copyright © 2018 www.massapicom. 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.