mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
1.13.1
This commit is contained in:
@@ -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
|
||||
@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;
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user