0
時使前查詢參數哈希內容我用uribuilder對象從apache.http.client創建網址如何通過uribuilder創建網址
例如:www.xxx.com /#/路徑/查詢= 123
我的代碼如下
URIBuilder uriBuilder = new URIBuilder();
uriBuilder.setScheme("http");
uriBuilder.setHost(host);
uriBuilder.setFragment(path);
uriBuilder.addParameter(query,123);
但結果是www.xxx.com/?query=123#path,我怎麼能得到正確的URL如我所料的uribuilder或其他Java工具庫。