使用RestAssured发送发帖请求时,我遇到以下错误。
groovy.lang.MissingMethodException: No signature of method: static io.restassured.internal.http.URIBuilder.encode() is applicable for argument types: (String, String) values: [prweb, UTF-8]
Possible solutions: hashCode()
下面是引发错误的行
request.header("Authorization", "Basic " + Base64.getEncoder().encodeToString("username" + ":" + "password").getBytes()));
request.post(path);
有人可以建议。谢谢。