This commit is contained in:
tanghc
2019-07-25 14:05:31 +08:00
parent eb4612f22f
commit bf49c68286
3 changed files with 4 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
## 1.13.1
- 支持json方式请求application/json
- 支持传统web服务开发见文档`传统web开发`
## 1.13.0

View File

@@ -44,8 +44,8 @@ public class TraditionalWebappController {
return food;
}
// http://localhost:8081/rest/food/get/getFoodByObj?id=2
@ApiMapping(value = "/get/getFoodByObj", method = RequestMethod.GET)
// http://localhost:8081/rest/food/getFoodByObj?id=2
@ApiMapping(value = "ggetFoodByObj", method = RequestMethod.GET)
public Food getFoodByObj(Food food) {
return food;
}

View File

@@ -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) {