java读取资源文件信息
作者:51itcn 日期:2010-05-05
private static final String CONFIG = "conf";
private static ResourceBundle CONFIG_S = ResourceBundle.getBundle(CONFIG);
private Conf() {
}
public static String getString(String key) {
try {
return CONFIG_S.getString(key);
} catch (MissingResourceException e) {
e.printStackTrace();
}
return "";
}
发表评论
你没有权限发表留言!
上一篇
下一篇

文章来自:
Tags: 查看次数: 251