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");