GeezerVison is showing github.com — Update Java Notes · Seazean/JavaNote@411b33b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: DB.md +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4827,6 +4827,10 @@ CREATE INDEX idx_seller_name_sta_addr ON tb_seller(name, status, address); |
4827 | 4827 |
|
4828 | 4828 |
|
4829 | 4829 |
|
| 4830 | +参考文章:https://mp.weixin.qq.com/s/B_M09dzLe9w7cT46rdGIeQ |
| 4831 | + |
| 4832 | + |
| 4833 | + |
4830 | 4834 | *** |
4831 | 4835 |
|
4832 | 4836 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Frame.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3617,20 +3617,20 @@ RocketMQ 主要由 Producer、Broker、Consumer 三部分组成,其中 Produce |
3617 | 3617 |
|
3618 | 3618 | 消息发送者步骤分析: |
3619 | 3619 |
|
3620 | | -1. 创建消息生产者 producer,并制定生产者组名 |
| 3620 | +1. 创建消息生产者 Producer,并制定生产者组名 |
3621 | 3621 | 2. 指定 Nameserver 地址 |
3622 | | -3. 启动 producer |
| 3622 | +3. 启动 Producer |
3623 | 3623 | 4. 创建消息对象,指定主题 Topic、Tag 和消息体 |
3624 | 3624 | 5. 发送消息 |
3625 | | -6. 关闭生产者 producer |
| 3625 | +6. 关闭生产者 Producer |
3626 | 3626 |
|
3627 | 3627 | 消息消费者步骤分析: |
3628 | 3628 |
|
3629 | 3629 | 1. 创建消费者 Consumer,制定消费者组名 |
3630 | 3630 | 2. 指定 Nameserver 地址 |
3631 | 3631 | 3. 订阅主题 Topic 和 Tag |
3632 | 3632 | 4. 设置回调函数,处理消息 |
3633 | | -5. 启动消费者 consumer |
| 3633 | +5. 启动消费者 Consumer |
3634 | 3634 |
|
3635 | 3635 |
|
3636 | 3636 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Java.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2551,7 +2551,7 @@ JDK 1.8:当一个字符串调用 intern() 方法时,如果 String Pool 中 |
2551 | 2551 | * 存在一个字符串和该字符串值相等,就会返回 String Pool 中字符串的引用(需要变量接收) |
2552 | 2552 | * 不存在,会把对象的**引用地址**复制一份放入串池,并返回串池中的引用地址,前提是堆内存有该对象,因为 Pool 在堆中,为了节省内存不再创建新对象 |
2553 | 2553 |
|
2554 | | -JDK 1.6:将这个字符串对象尝试放入串池,如果有就不放入,返回已有的串池中的对象的地址;如果没有会把此对象复制一份,放入串池,把串池中的对象返回 |
| 2554 | +JDK 1.6:将这个字符串对象尝试放入串池,如果有就不放入,返回已有的串池中的对象的引用;如果没有会把此对象复制一份,放入串池,把串池中的对象返回 |
2555 | 2555 |
|
2556 | 2556 | ```java |
2557 | 2557 | public class Demo { |
@@ -2600,7 +2600,7 @@ String s = new String("ab"); |
2600 | 2600 |
|
2601 | 2601 |
|
2602 | 2602 |
|
2603 | | -##### 面试问题 |
| 2603 | +##### 常见问题 |
2604 | 2604 |
|
2605 | 2605 | 问题一: |
2606 | 2606 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Web.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2235,13 +2235,13 @@ HTTPS 工作流程:服务器端的公钥和私钥,用来进行非对称加 |
2235 | 2235 | Cookie: Idea-b77ddca6=4bc282fe-febf-4fd1-b6c9-72e9e0f381e8 |
2236 | 2236 | ``` |
2237 | 2237 |
|
2238 | | - * 面试题:**Get 和POST比较** |
| 2238 | + * **Get 和 POST 比较** |
2239 | 2239 |
|
2240 | 2240 | 作用:GET 用于获取资源,而 POST 用于传输实体主体 |
2241 | 2241 |
|
2242 | | - 参数:GET 和 POST 的请求都能使用额外的参数,但是 GET 的参数是以查询字符串出现在 URL 中,而 POST 的参数存储在实体主体中。不能因为 POST 参数存储在实体主体中就认为它的安全性更高,因为照样可以通过一些抓包工具(Fiddler)查看 |
| 2242 | + 参数:GET 和 POST 的请求都能使用额外的参数,但是 GET 的参数是以查询字符串出现在 URL 中,而 POST 的参数存储在实体主体中(GET 也有请求体,POST 也可以通过 URL 传输参数)。不能因为 POST 参数存储在实体主体中就认为它的安全性更高,因为照样可以通过一些抓包工具(Fiddler)查看 |
2243 | 2243 |
|
2244 | | - 安全:安全的 HTTP 方法不会改变服务器状态,也就是说它只是可读的。GET方法是安全的,而POST不是,因为 POST 的目的是传送实体主体内容 |
| 2244 | + 安全:安全的 HTTP 方法不会改变服务器状态,也就是说它只是可读的。GET 方法是安全的,而 POST 不是,因为 POST 的目的是传送实体主体内容 |
2245 | 2245 |
|
2246 | 2246 | * 安全的方法除了 GET 之外还有:HEAD、OPTIONS |
2247 | 2247 | * 不安全的方法除了 POST 之外还有 PUT、DELETE |
|