假如我想获取src目录下sysConfig.properties中的uploadpath属性的值
方法如下所示:
private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig");
String value= bundle.getString("uploadpath");
假如我想获取src目录下sysConfig.properties中的uploadpath属性的值
方法如下所示:
private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig");
String value= bundle.getString("uploadpath");