?? netservertest.java
字號:
package com.briup.impl.net;import java.util.Properties;import com.briup.Config;import com.briup.NetServer;import com.briup.impl.config.ConfigImpl;/* * 1、獲取config的實例 * 2、獲取NetServer,log的實例 * 3、調用netServer的setConfig方法 * 4、調用start方法 */public class NetServerTest { public static void main(String[] agrs){ Properties pro = new Properties(); pro.setProperty("config_file_path", "src/com/briup/resource/config.xml"); NetServer ns =null; try { Config config = ConfigImpl.newInstance(pro); ns = config.getNetServer(); System.out.println(ns); ns.setConfig(config); ns.start(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -