//对应当前工程路径下config/properties/sysInfo.propertiesResourceBundle bundle = ResourceBundle.getBundle("config.properties.sysInfo");
//指定字段的名称
String value = bundle.getString("keyName");
Java工程中读取配置文件信息
原文:https://www.cnblogs.com/ymmzyxy/p/13052396.html