摘要: ExecutorService es= Executors.newFixedThreadPool(200); for(int i=0; i<500; i++){ es.submit(new Runnable() { @Override public void run() { empService.g 阅读全文
posted @ 2023-03-16 14:54 快乐的小太阳 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 你好 1、创建RestTemplate并注入spring容器(application: ) @Beanpublic RestTemplate restTemplate(){ return new RestTemplate();} 2、利用RestTemplate发起http请求,查询用户 @Auto 阅读全文
posted @ 2023-03-16 10:37 快乐的小太阳 阅读(10) 评论(0) 推荐(0) 编辑