Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ dataSources/
.DS_Store
.Ds_Store´
/node_modules


5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@

#### 数据脱敏

数据脱敏说的就是我们根据特定的规则对敏感信息数据进行变形,比如我们把手机号、身份证号某些位数使用 * 来代替。相关阅读:

- [大厂也在用的 6种 数据脱敏方案,严防泄露数据的 “内鬼”](https://www.cnblogs.com/chengxy-nds/p/14107671.html)
- [【进阶之路】基于ShardingSphere的线上业务数据脱敏解决方案](https://juejin.cn/post/6906074730437836813)
数据脱敏说的就是我们根据特定的规则对敏感信息数据进行变形,比如我们把手机号、身份证号某些位数使用 * 来代替。

### 分布式

Expand Down
10 changes: 2 additions & 8 deletions docs/java/jvm/Java内存区域.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,10 @@ String s1 = "计算机";
String s2 = s1.intern();
String s3 = "计算机";
System.out.println(s2);//计算机
System.out.println(s1.equals(s2));//true
System.out.println(s3.equals(s2));//true,因为两个都是常量池中的 String 对象
System.out.println(s1 == s2);//true
System.out.println(s3 == s2);//true,因为两个都是常量池中的 String 对象
```

`s1.equals(s2)` 输出为 true 的原因 :

1. s1 调用 `intern()` 的时候,因为常量池没有对应的字面量,所以在常量池保存了一个指向 s1 的引用
2. 接下来的 s2 会先去常量池里找,找到对应引用,故指向堆里的 s1
3. 故 `s1.equals(s2)` 为 true

**字符串拼接:**

```java
Expand Down