标签:
public class PropertiesUtils { private static PropertiesConfiguration propertiesConfiguration; static { try { propertiesConfiguration = new PropertiesConfiguration("config.properties"); } catch (ConfigurationException e) { throw new RuntimeException(e); } } /** * 读取config.properties的值 * @param key * @return */ public static String getProrperty(String key){ return propertiesConfiguration.getString(key); } }
标签:
原文地址:http://www.cnblogs.com/licqs/p/4805760.html