ExecutorService service = Executors.newSingleThreadExecutor(); service.execute(new Runnable() { public void run() { inertPayRecord(reqdata, siteCode); // 插入支付记录 insertPayLog(reqdata); // 插入支付日志 } });
ExecutorService service = Executors.newSingleThreadExecutor(); service.execute(new Runnable() { public void run() { inertPayRecord(reqdata, siteCode); // 插入支付记录 insertPayLog(reqdata); // 插入支付日志 } });
原文:https://www.cnblogs.com/LiLiliang/p/8639748.html