配置文件读取Properties和ResourceBundle_resourcebundle类读取配置中心的配置_情不缺钱的博客-CSDN博客

网站介绍:文章浏览阅读59次。Properties用#注释Properties和HashMap方法一样。提供getProperty(k)和setProperty(k,y)对字符串操作。提供load(InputStreamin),用于从文件中加载相关键值对。Propertiesproperties=newProperties();FileInputStreamfileInputStream=newFileInputStream(配置文件位置);properties.load(fileInputStream);Syst..._resourcebundle类读取配置中心的配置