什么情况下调用doGet()和doPost()?

默认情况是调用doGet()方法,JSP页面中的Form表单的method属性设置为post的时候,调用的为doPost()方法;
为get的时候,调用deGet()方法。

posted @ 2020-11-26 13:48  LinYanyan  阅读(78)  评论(0编辑  收藏  举报