时间:2024-10-12 03:05:39
1、首先创建properties文件,并向里面写入内容。
2、使用ResourceBundle类的getBundle方法读取properties文件。
3、运行代码,properties文件中的内容被打印出来了。