读取配置文件

来源:互联网 发布:银行家算法c语言代码 编辑:程序博客网 时间:2024/06/18 12:49
/** * 读取短信配置信息 */private Properties loadMsgInfo() {    Properties properties = new Properties();    ClassLoader cl = getClass().getClassLoader();    try {        properties.load(cl.getResourceAsStream("filePath.properties"));    } catch (IOException e) {        LOGGER.error("读取短信配置文件出错!", e);    }    return properties;}
0 0