1 package io.bytom.common;
3 import java.io.FileNotFoundException;
4 import java.io.IOException;
5 import java.util.Properties;
7 public class Configuration {
9 private static Properties props = new Properties();
12 props.load(Thread.currentThread().getContextClassLoader()
13 .getResourceAsStream("config.properties"));
14 } catch (FileNotFoundException e) {
16 } catch (IOException e) {
21 public static String getValue(String key) {
22 return props.getProperty(key);
25 public static void updateProperties(String key, String value) {
26 props.setProperty(key, value);