Java工程中读取配置文件信息

//对应当前工程路径下config/properties/sysInfo.properties
ResourceBundle bundle = ResourceBundle.getBundle("config.properties.sysInfo");

//指定字段的名称

String value = bundle.getString("keyName");

posted @ 2020-06-05 21:25  补风的杨大爷  阅读(212)  评论(0)    收藏  举报