加载配置打印日志
This commit is contained in:
@@ -20,6 +20,7 @@ public class PropertiesUtil {
|
|||||||
* 私有化构造函数,防止类被实例化
|
* 私有化构造函数,防止类被实例化
|
||||||
*/
|
*/
|
||||||
private PropertiesUtil(String filePath, String encode) {
|
private PropertiesUtil(String filePath, String encode) {
|
||||||
|
System.out.println("PropertiesUtil init filePath: " + filePath);
|
||||||
File file = new File(filePath);
|
File file = new File(filePath);
|
||||||
File[] array = file.listFiles();
|
File[] array = file.listFiles();
|
||||||
for(File childfile : array) {
|
for(File childfile : array) {
|
||||||
@@ -178,7 +179,7 @@ public class PropertiesUtil {
|
|||||||
paramMap.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
|
paramMap.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
|
||||||
}
|
}
|
||||||
allParam.put(fileName, paramMap);
|
allParam.put(fileName, paramMap);
|
||||||
System.out.println("loadConfig " + fileName + " " + allParam);
|
System.out.println("loadConfig " + fileName + " keys: " + allParam.keySet());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -45,19 +45,13 @@ public class MossApiTest {
|
|||||||
logger.info("res={}",gson.toJson(res));
|
logger.info("res={}",gson.toJson(res));
|
||||||
}
|
}
|
||||||
// 订单支付-独立支付
|
// 订单支付-独立支付
|
||||||
//{"order_no":"PY17567817943290000000362",
|
|
||||||
// "total_amount":"2.00",
|
|
||||||
// "mer_no":"M00000233",
|
|
||||||
// "remark":"学费缴纳",
|
|
||||||
// "notify_url":"https://zj.zjhzzsb.com/api/pay/lkl/notify",
|
|
||||||
// "pay_scene":"0","account_type":"ALIPAY,WECHAT,UQRCODEPAY","subject":"学费缴纳协议 - 梦想班(2026)"}
|
|
||||||
@Test
|
@Test
|
||||||
public void testOrderPay(){
|
public void testOrderPay(){
|
||||||
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
||||||
IMossApiService mossApi = new MossApiServiceImpl();
|
IMossApiService mossApi = new MossApiServiceImpl();
|
||||||
OrderPayReq req = new OrderPayReq();
|
OrderPayReq req = new OrderPayReq();
|
||||||
req.setOrder_no("PY17567817943290000000362");
|
req.setOrder_no("PY17567832821250000000317");
|
||||||
req.setTotal_amount("1");
|
req.setTotal_amount("3");
|
||||||
req.setMer_no("M00000233");
|
req.setMer_no("M00000233");
|
||||||
req.setRemark("学费缴纳");
|
req.setRemark("学费缴纳");
|
||||||
req.setNotify_url("https://zj.zjhzzsb.com/api/pay/lkl/notify");
|
req.setNotify_url("https://zj.zjhzzsb.com/api/pay/lkl/notify");
|
||||||
|
|||||||
Reference in New Issue
Block a user