[支持main方法测试]
ResourceBundle resourceBundle =
ResourceBundle.getBundle("service");
String url = resourceBundle.getString("serviceid");
System.out.println(url);
service.properties [配置文件,放在src根目录下]
serviceid=1
[不支持中文]
原文地址:http://www.cnblogs.com/IRIS-TK1/p/3772022.html