public static String environment = null; static { try { Properties properties = new Properties(); String path = WF.getConfigFolder() + WF.getNamespace() + "/appservice.properties"; properties.load(new FileInputStream(path)); environment = properties.getProperty("environment"); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
原文地址:http://keehl.blog.51cto.com/6184307/1706984