Skip to content

Commit 4529ad9

Browse files
authored
get 和 post 的区别补充
1 parent 8982879 commit 4529ad9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Java相关/J2EE基础知识.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Servlet接口定义了5个方法,其中**前三个方法与Servlet生命周期
7878

7979
补充:GET方式提交表单的典型应用是搜索引擎。GET方式就是被设计为查询用的。
8080

81+
还有另外一种回答。推荐大家看一下:
82+
83+
- https://www.zhihu.com/question/28586791
84+
- https://mp.weixin.qq.com/s?__biz=MzI3NzIzMzg3Mw==&mid=100000054&idx=1&sn=71f6c214f3833d9ca20b9f7dcd9d33e4#rd
8185

8286
## 什么情况下调用doGet()和doPost()
8387
Form标签里的method的属性为get时调用doGet(),为post时调用doPost()。

0 commit comments

Comments
 (0)