ResourceBundle获得.proprety的文件
//默认是直接从src下获取,不用写.property后缀。
ResourceBundle rb = ResourceBundle.getBundle("merchantInfo"); String yeepayCommonReqURL = rb.getString("yeepayCommonReqURL"); System.out.println(yeepayCommonReqURL);