ant
This commit is contained in:
parent
05117dd991
commit
ec7f0c4293
@ -14,16 +14,37 @@
|
|||||||
|
|
||||||
5、常用的负载均衡,该怎么用,你能说下吗?
|
5、常用的负载均衡,该怎么用,你能说下吗?
|
||||||
|
|
||||||
|
>答:负载均衡的算法实现主要有:
|
||||||
|
轮询、加权轮询、最少链接、加权最少链接、随机算法、源地址哈希算法。
|
||||||
|
|
||||||
|
> 通常负载均衡用于无状态的应用服务器,平衡服务器的压力,实现服务的高可用性。
|
||||||
|
|
||||||
6、网关能够为后端服务带来哪些好处?
|
6、网关能够为后端服务带来哪些好处?
|
||||||
|
|
||||||
|
> 答:网关服务是单一访问点,并充当多项服务的代理,服务网关启用了跨所有服务的路由转发、过滤和公共处理等条件。可以做到统一接入、流量管控、安全防护、业务隔离等功能。
|
||||||
|
|
||||||
|
<div align="center"><img src="http://p179cyr45.bkt.clouddn.com/17-12-21/11334157.jpg" width = "50%" /></div>
|
||||||
|
|
||||||
7、Spring Bean 的生命周期
|
7、Spring Bean 的生命周期
|
||||||
|
|
||||||
8、xml 中配置的 init、destroy 方法怎么可以做到调用具体的方法?
|
8、xml 中配置的 init、destroy 方法怎么可以做到调用具体的方法?
|
||||||
|
|
||||||
9、反射的机制
|
9、反射的机制
|
||||||
|
|
||||||
|
> 答: java的反射机制能够获取对象的所有构造方法,所有的成员变量,泛型类型
|
||||||
|
|
||||||
|
[参考链接](https://blog.csdn.net/gdutxiaoxu/article/details/68947735)
|
||||||
|
|
||||||
10、Object 类中的方法
|
10、Object 类中的方法
|
||||||
|
|
||||||
|
- getClass()
|
||||||
|
- hashCode()
|
||||||
|
- equals()
|
||||||
|
- toString()
|
||||||
|
- notify()
|
||||||
|
- notifyAll()
|
||||||
|
- wait()
|
||||||
|
|
||||||
11、hashcode 和 equals 方法常用地方
|
11、hashcode 和 equals 方法常用地方
|
||||||
|
|
||||||
12、对象比较是否相同
|
12、对象比较是否相同
|
||||||
|
Loading…
x
Reference in New Issue
Block a user