我试图用play.api.libs.ws.WS执行一个职位,但我无法弄清楚
如何设置参数,我的代码:
如何设置参数,我的代码:
Promise<Response> promise = WS.url(Play.application().configuration() .getString("sms.service.url")).post();
.post take(T body,play.api.http.Writeable wrt,play.api.http.ContentTypeOf ct)
但我不明白我应该如何通过params那里.
文档仅说明:
Promise<WS.Response> result = WS.url("http://localhost:9001").post("content");