public static Properties p = new Properties(); static { try { p.load(当前类.class.getResourceAsStream("/config/config.properties")); } catch (IOException e) { e.printStackTrace(); } }
public static final String name = p.getProperty("name");
因篇幅问题不能全部显示,请点此查看更多更全内容