在类文件中加入代码: 

//config.properties.sysInfo 
//sysInfo.properties在文件夹的路径为/src/config/properties/sysInfo.properties
ResourceBundle bundle = ResourceBundle.getBundle("config.properties.sysInfo");
//keyName为配置文件的key名称
String value = bundle.getString("keyName");
//value为keyName对应的值

亲测好使。。。

相关文章:

  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-05-19
  • 2021-09-24
  • 2021-06-13
相关资源
相似解决方案