ResourceBundle类的方式来读取config.properties配置文件参数值

 

 

//获取config.properties配置文件参数值
public static ResourceBundle resource = ResourceBundle.getBundle("config");
String system_Name = new String(resource.getString("Client_Name").getBytes("ISO-8859-1"),"UTF-8");

public static ResourceBundle resource = ResourceBundle.getBundle("config");
public static String system_Type_Config = resource.getString("System_Type");

 

posted on 2019-03-27 15:53  LJD泊水  阅读(427)  评论(0编辑  收藏  举报