【发布时间】:2021-02-09 22:53:10
【问题描述】:
我正在使用放心来自动获取请求。我有以下要编码的查询参数。我用谷歌搜索并找到 URLEncoder.encode(String) 来编码我的查询参数,该参数正在工作,但我收到警告,因为“编码已被弃用。你能帮忙吗?这是我可以用来编码我的查询参数的最新方法。你的帮助是不胜感激。提前致谢
*String queryParam =
"profiles/employee eq 'test1' and id eq 'test'";
String restUrl = URLEncoder.encode(queryParam);*
warning: encode(java.lang.String)' is deprecated
【问题讨论】:
标签: java api rest rest-assured