假如我想获取src目录下sysConfig.properties中的uploadpath属性的值
方法如下所示:
private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig");
String value= bundle.getString("uploadpath");
本文共 250 字,大约阅读时间需要 1 分钟。
假如我想获取src目录下sysConfig.properties中的uploadpath属性的值
方法如下所示:
private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig");
String value= bundle.getString("uploadpath");
转载于:https://www.cnblogs.com/chinaifae/p/10190023.html