From 41e5acc57c2f5751ea840f90e73e0f041af55295 Mon Sep 17 00:00:00 2001 From: fzk <503097992@qq.com> Date: Sat, 27 Jan 2024 13:51:36 +0000 Subject: [PATCH] =?UTF-8?q?update=20(SpringMVC/note/SpringMVC.md.=20:=20me?= =?UTF-8?q?thod(String[])=20->=20method(RequestMethod[]))=20method?= =?UTF-8?q?=E7=9A=84=E5=85=A5=E5=8F=82=E8=A6=81=E6=B1=82=E6=98=AF=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E7=B1=BB=E6=95=B0=E7=BB=84RequestMethod[]=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fzk <503097992@qq.com> --- SpringMVC/note/SpringMVC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpringMVC/note/SpringMVC.md b/SpringMVC/note/SpringMVC.md index da8f502..d6df4be 100644 --- a/SpringMVC/note/SpringMVC.md +++ b/SpringMVC/note/SpringMVC.md @@ -261,7 +261,7 @@ SpringMVC接收到指定的请求时,会在映射关系中找到对应的控 ## 3.3 注解属性 + Value(String[]):访问当前控制器方法的请求路径,必须设置 -+ method(String[]):请求方式(Get或者Post),对于处理指定请求方式的控制器方法,有派生注解@GetMapping和@PostMapping ++ method(RequestMethod[]):请求方式(Get或者Post),对于处理指定请求方式的控制器方法,有派生注解@GetMapping和@PostMapping + params(String[]):通过请求参数匹配请求映射 + "param":要求请求必须携带param请求参数 + "!param":要求请求不能携带param请求参数 -- Gitee