JAVA配置文件元素获取

/**拿到配置文件*/

private static ResourceBundle bundle1 = ResourceBundle.getBundle("baseInfo");

/**获取配置文件属性*/

String ctxPath = bundle1.getString("pic_path");

猜你喜欢

转载自blog.csdn.net/qt_lls/article/details/87873993