Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个查询字符串通过URI 对象发送 http 请求,但是 URI 对象重新格式化了我的查询字符串,包括参数。
您正在将“查询”部分添加到路径中。你要
queryString /* misnamed */ += "/v2/cart/addProduct"; String query = "?..."; ... uri = new URI("http", null, getDomain(), 80, queryString, query, null);