private static Properties pro = new Properties(); static { InputStream in = SysUtils.class.getResourceAsStream("/bpmaddress.properties"); System.out.println("配置文件bpmaddress.properties的流:"+in); try { pro.load(in); } catch(IOException e) { e.printStackTrace(); } } public static String getProperty(String name) { return pro.getProperty(name).trim(); }