在标注@PUT后,参数接收不到
这是后台代码
```java
@At("/order/")
@PUT
@Ok("json")
public Object updateOrder(@Param("id") long id) {
System.out.println(id);
JsonResult result = JsonResult.createSuccess();
return result;
}
这是模拟请求代码
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient.Builder().build();
FormBody fb = new FormBody.Builder().add("id","1234567").build();
Request request = new Request.Builder().url("http://127.0.0.1:8088/api/mct/order").put(fb).build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
```
后台输出id为0,是要加上特定的适配器吗?还是别原因?