import com.google.common.base.Splitter;
import org.springframework.util.MultiValueMap;
import org.springframework.web.util.UriComponentsBuilder;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class UrlParamsUtils {
/**
* 方式一:基于 JDK 的类;支持重复参数
* @param url
* @return
* @throws IOException
*/
public static Map<String, List<String>> getParamsByNative (String url) throws IOException {
Map<String, List<String>> params = new HashMap<>();
int subIdx = url.indexOf("?");
if (subIdx < 0) return params;
String query = url.substring(subIdx + 1);
if(query.trim().length() == 0) return params;
String[] kvLinkStrArr = query.split("&");
for (String kvLinkStr