tanghc 5 years ago
parent eb4612f22f
commit bf49c68286
  1. 1
      changelog.md
  2. 4
      sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/TraditionalWebappController.java
  3. 2
      sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/client/OpenRequest.java

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

@ -44,8 +44,8 @@ public class TraditionalWebappController {
return food; 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) { public Food getFoodByObj(Food food) {
return food; return food;
} }

@ -42,7 +42,7 @@ public class OpenRequest {
} }
return openHttp.get(url, header); return openHttp.get(url, header);
} else { } else {
return openHttp.requestJson(url, JSON.toJSONString(form), header); return openHttp.request(url, form, header, requestMethod.name());
} }
} }
} catch (IOException e) { } catch (IOException e) {

Loading…
Cancel
Save