Required request parameter ‘name‘ for method parameter type String is not present 报错解决方法

注解支持的类型支持的请求类型支持的  Content-Type请求示例
@PathVariableurlGET所有/test/{id}
@RequestParamurlGET所有/test?id=1
@RequestBodyBodyPOST/PUT/DELETE/PATCHjson

{

   "id" : 1

}

 

 

 

posted @ 2023-02-08 16:22  wode林夕  阅读(215)  评论(0编辑  收藏  举报  来源