【发布时间】:2018-02-16 14:11:09
【问题描述】:
在后端我有带有 POST 方法的 REST 控制器:
@RequestMapping(value = "/save", method = RequestMethod.POST)
public Integer save(@RequestParam String name) {
//do save
return 0;
}
如何使用带有请求参数的WebClient 创建请求?
WebClient.create(url).post()
.uri("/save")
//?
.exchange()
.block()
.bodyToMono(Integer.class)
.block();
【问题讨论】:
标签: java spring spring-webflux