如何轉換地圖查詢字符串?
例如:
MockHttpServletRequest request = getRequest();
HashMap<String, String> queryString = new HashMap<String, String>();
queryString.put("IDcontent", "4546446");
queryString.put("ID_CP", "604204d6-3ded-4882-9427-52f1ff8ee6c8");
request.setQueryString(mapToQueryString(queryString));
我認爲是這樣的(mapToQueryString)做非標準庫,但我不能找到它。
看到http://stackoverflow.com/questions/2809877/how-to-convert-map-to-url-query-string – jeha