随笔 - 545
文章 - 0
评论 - 31
阅读 -
72万
01 2019 档案
Zookeeper一致性协议原理Zab
摘要:转载:Zookeeper一致性协议原理Zab ZooKeeper学习第七期--ZooKeeper一致性原理 概念 ZooKeeper为高可用的一致性协调框架,自然的ZooKeeper也有着一致性算法的实现,ZooKeeper使用的是ZAB协议作为数据一致性的算法, ZAB(ZooKeeper Ato
阅读全文
Zookeeper架构、ZAB协议、选举
摘要:转载:深入浅出Zookeeper(一) Zookeeper架构及FastLeaderElection机制 (nice) ZooKeeper学习第六期 ZooKeeper机制架构 一、Zookeeper是什么 Zookeeper是一个分布式协调服务,可用于服务发现,分布式锁,分布式领导选举,配置管理等
阅读全文
spring AOP
摘要:转载:Spring AOP详解 概念 AOP(Aspect Oriented Programming),即面向切面编程,可以说是OOP(Object Oriented Programming,面向对象编程)的补充和完善。OOP引入封装、继承、多态等概念来建立一种对象层次结构,用于模拟公共行为的一个集
阅读全文
spring bean生命周期
摘要:转载:Spring Bean的生命周期(非常详细) https://www.cnblogs.com/aspirant/p/7154159.html 生命周期流程图 注意点: 1.从“执行Bean的构造器”开始才能算是Bean生命周期的开始。 2.若使用ApplicationContext来生成并管理
阅读全文
[LeetCode] 35. Search Insert Position ☆(丢失的数字)
摘要:转载:https://leetcode.windliang.cc/leetCode-35-Search-Insert-Position.html 思路 Given a sorted array and a target value, return the index if the target is
阅读全文
[LeetCode] 29. Divide Two Integers(不使用乘除取模,求两数相除) ☆☆☆
摘要:转载:https://blog.csdn.net/Lynn_Baby/article/details/80624180 Given two integers dividend and divisor, divide two integers without using multiplication,
阅读全文
代理模式和装饰器模式的区别
摘要:转载:https://www.cnblogs.com/xiaolovewei/p/7751332.html 首先,让我们先看一下下面的这两个UML类图,他们分别描述了装饰器模式和代理模式的基本实现。 这两个图可能使我们产生困惑。这两个设计模式看起来很像。对装饰器模式来说,装饰者(decorator)
阅读全文
HashMap知识点、问题
摘要:转载:https://blog.csdn.net/qq_27007251/article/details/71403647 https://www.cnblogs.com/kxdblog/p/4323892.html HashMap1.7 HashMap1.7出现闭环的原因 问题描述 从前我们的Ja
阅读全文
String为什么不可变
摘要:转载:http://www.importnew.com/7440.html https://www.cnblogs.com/leskang/p/6110631.html 什么是不可变对象? 众所周知, 在Java中, String类是不可变的。那么到底什么是不可变的对象呢? 可以这样认为:如果一个对
阅读全文
GET POST区别
摘要:GET POST区别 转载:http://www.cnblogs.com/logsharing/p/8448446.html GET在浏览器回退时是无害的,而POST会再次提交请求。GET产生的URL地址可以被Bookmark,而POST不可以。GET请求会被浏览器主动cache,而POST不会,除
阅读全文
http1.0 1.1 2.0区别
摘要:http1.0 1.1 2.0区别 转载:https://blog.csdn.net/linsongbin1/article/details/54980801/ 1、HTTP1.0 1.1区别 (1)长连接: HTTP 1.0需要使用keep-alive参数来告知服务器端要建立一个长连接,而HTTP
阅读全文
mysql 行转列 列转行
摘要:转载:http://www.cnblogs.com/xiaoxi/p/7151433.html 一、行转列 即将原本同一列下多行的不同内容作为多个字段,输出对应内容。 建表语句 插入数据 查询数据表中的内容(即转换前的结果) 先来看一下转换后的结果: 可以看出,这里行转列是将原来的subject字段
阅读全文
分布式系统理论之Quorum机制
摘要:转载:https://www.cnblogs.com/hapjin/p/5626889.html https://www.iteye.com/news/32340 Quorum 一,Quorum机制介绍 在分布式系统中有个CAP理论,对于P(分区容忍性)而言,是实际存在 从而无法避免的。因为,分布系
阅读全文
MySQL解析过程、执行过程
摘要:转载:https://student-lp.iteye.com/blog/2152601 https://www.cnblogs.com/cdf-opensource-007/p/6502556.html 说说一条查询sql的执行流程和底层原理? 执行SQL更新时,其底层经历了哪些操作? MySQL
阅读全文
redis常见问题和解决方案
摘要:转载:https://www.cnblogs.com/aspirant/p/6820262.html 【原创】那些年用过的Redis集群架构(含面试解析) redis常见问题和解决方案 持久化、主从问题 (1) Master最好不要做任何持久化工作,如RDB内存快照和AOF日志文件 (a)Maste
阅读全文
[LeetCode] 268. Missing Number ☆(丢失的数字)
摘要:转载:http://www.cnblogs.com/grandyang/p/4756677.html 描述 Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is mi
阅读全文
[LeetCode] 41. First Missing Positive ☆☆☆☆☆(第一个丢失的正数)
摘要:Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0]Output: 3Example 2: Input: [3,4,-1,1]Output: 2Ex
阅读全文
如何将一个长URL转换为一个短URL
摘要:https://blog.csdn.net/xlgen157387/article/details/80026452
阅读全文
Tomcat类加载器破坏双亲委派
摘要:转载:https://blog.csdn.net/qq_38182963/article/details/78660779 http://www.cnblogs.com/aspirant/p/8991830.html http://www.cnblogs.com/xing901022/p/45749
阅读全文