如何使用 LDAP 基于微服务架构实现权限统一验证

上个月刚找到工作, 入职不到三天, 老大就开始分配任务, 我们公司做了很多业务系统, 稳定运行也有一段时间了, 但是现在碰到了问题, 就是系统的权限控制啊, 非常的混乱, 之前用的是 RBAC 的方式来进行控制, 现在我们要做更改, 改用 LDAP 来控制.....
经过一周的努力, 搜了一大堆的资料, 全是一些概念介绍, 然后就是如何安装配置的文章, 最后, LDAP 是如何进行权限控制的, 自己仍然是云里雾里!

Read More

flutter Stack 组件的底层布局算法是怎么样的?

flutter 组件中, Stack 组件的使用频率还是很高的, Stack 组件的作用是实现层叠布局, 配合 Positions 组件和 Align 组件, 将实现子组件绝对定位.
那么, 它是如何决定子组件的摆放位置的呢? 这个算法是由 RenderStack 类来决定, 下面是布局算法的过程:

Read More

lleetCode-刷题经验总结四

这是刷 leetCode 的第四篇博文, 涉及到的题目:
A) 反转字符(编号:344): leetcode-cn.com/problems/reverse-string/
B) 反转字符II(编号:541): leetcode-cn.com/problems/reverse-string-ii/
C) 替换空格(编号:剑指offer 05): leetcode-cn.com/problems/ti-huan-kong-ge-lcof/
D) 翻转字符串里的字符(编号:151): leetcode-cn.com/problems/reverse-words-in-a-string/
E) 左旋转字符串(编号:剑指offer 58 II): leetcode-cn.com/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/
E) 实现 strStr() 函数(编号:28): leetcode-cn.com/problems/implement-strstr/
F) 重复的子字符串(编号:459): leetcode-cn.com/problems/repeated-substring-pattern/

Read More

leetCode 刷题经验总结三

这是刷 leetCode 的第三篇博文, 涉及到的题目:
A) 字母异位词(编号:242): leetcode-cn.com/problems/valid-anagram/
A) 两个数组的交集(编号:349): leetcode-cn.com/problems/intersection-of-two-arrays/
A) 快乐数(编号:202):leetcode-cn.com/problems/happy-number/
A) 两数之和(编号:1): leetcode-cn.com/problems/two-sum/
A) 四数相加 II(编号:454): leetcode-cn.com/problems/4sum-ii/
A) 三数之和(编号:15): leetcode-cn.com/problems/3sum/
A) 四数之和(编号:18): leetcode-cn.com/problems/4sum/submissions/

Read More

leetCode 刷题经验总结二

这是刷 leetCode 的第二篇博文, 涉及到的题目:
A) 移除链表中的元素(编号: 203): leetcode-cn.com/problems/remove-linked-list-elements/
B) 设计链表(编号:707): leetcode-cn.com/problems/design-linked-list/
C) 反转链表(编号:206) : leetcode-cn.com/problems/reverse-linked-list/
D) 查找环形链表的入口节点(编号:142): leetcode-cn.com/problems/linked-list-cycle-ii/

Read More

leetCode 刷题经验总结一

昨天利用一天的时间, 在 leetCode 上面刷了三道题, 现在做下总结, 涉及到的题目:
A) 移除元素
B) 搜索插入位置
C) 螺旋矩阵 II

Read More