ResourceBundle获得.proprety的文件
//默认是直接从src下获取,不用写.property后缀。
ResourceBundle rb = ResourceBundle.getBundle("merchantInfo"); String yeepayCommonReqURL = rb.getString("yeepayCommonReqURL"); System.out.println(yeepayCommonReqURL);
转载于:https://www.cnblogs.com/yanjunwu/archive/2012/09/28/2707793.html
相关资源:JAVA上百实例源码以及开源项目