Get请求:
在地址栏里输入请求url:http://localhost:9998/api/user
选择“GET”方式,
点击"Url params",添加url params key:id , value:1
点击“send”得到json数据如下:
如果想要Post请求:
在地址栏里输入请求url:http://localhost:9998/api/user/1
选择“POST”方式,
点击"application/x-www-form-urlencoded",
添加key:name , value:baidu-lulee007
添加key:sex , value:man