摘要:
public class DemoApplication { private static ExecutorService pool; public static void main(String[] args) throws UnsupportedEncodingException, Interr 阅读全文
摘要:
ExecutorService executorService = Executors.newSingleThreadExecutor(); Future<String> future = executorService.submit(() -> myJob(param)); try { //设置超 阅读全文
摘要:
在开发过程中和第三方系统对接时遇到需要使用GET请求传递JSON参数,现整理请求方式如下。 POM 1 <dependency> 2 <groupId>org.apache.httpcomponents</groupId> 3 <artifactId>httpclient</artifactId> 阅读全文