@ -3,6 +3,7 @@
## 1.13.1
- 支持json方式请求(application/json)
- 支持传统web服务开发(见文档`传统web开发`)
## 1.13.0
@ -44,8 +44,8 @@ public class TraditionalWebappController {
return food;
}
// http://localhost:8081/rest/food/get/getFoodByObj?id=2
// http://localhost:8081/rest/food/getFoodByObj?id=2
@ApiMapping(value = "/get/getFoodByObj", method = RequestMethod.GET)
@ApiMapping(value = "ggetFoodByObj", method = RequestMethod.GET)
public Food getFoodByObj(Food food) {
@ -42,7 +42,7 @@ public class OpenRequest {
return openHttp.get(url, header);
} else {
return openHttp.requestJson(url, JSON.toJSONString(form), header);
return openHttp.request(url, form, header, requestMethod.name());
} catch (IOException e) {