转载:https://thinkwon.blog.csdn.net/article/details/104397367
Java面试总结汇总,整理了包括Java基础知识,集合容器,并发编程,JVM,
常用开源框架Spring,MyBatis,数据库,中间件等,包含了作为一个Java工
程师在面试中需要用到或者可能用到的绝大部分知识。
1 Java基础知识面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104390612
2 Java集合容器面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104588551
3 Java异常面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104390689
4 并发编程面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104863992
5 JVM面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104390752
6 Spring面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397516
7 Spring MVC面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397427
8 Spring Boot面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397299
9 Spring Cloud面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397367
10 MyBatis面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/101292950
11 Redis面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/103522351
12 MySQL数据库面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104778621
13 消息中间件MQ与RabbitMQ面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104588612
14 Dubbo面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104390006
15 Linux面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104588679
16 Tomcat面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397665
17 ZooKeeper面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104397719
18 Netty面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/104391081
19 架构设计&分布式&数据结构与算法面试题(2020最新版) https://thinkwon.blog.csdn.net/article/details/105870730
@Controller
public class ConsumerControllerClient {
@Autowired
private LoadBalancerClient loadBalancer;
public void getEmployee() throws RestClientException, IOException {
ServiceInstance serviceInstance=loadBalancer.choose("employee-producer");
System.out.println(serviceInstance.getUri());
String baseUrl=serviceInstance.getUri().toString();
baseUrl=baseUrl+"/employee";
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> response=null;
try{
response=restTemplate.exchange(baseUrl,
HttpMethod.GET, getHeaders(),String.class);
}
catch (Exception ex)
{
System.out.println(ex);
}
System.out.println(response.getBody());
}