@@ -0,0 +1,645 @@
+package com.mars.test.java;%0A%0Aimport lombok.extern.slf4j.Slf4j;%0Aimport org.junit.Test;%0A%0Aimport java.io.UnsupportedEncodingException;%0Aimport java.net.URLDecoder;%0Aimport java.net.URLEncoder;%0A%0A/**%0A * Created by USER on 2017/1/9.%0A */%0A@Slf4j%0Apublic class TestUriDecoder %7B%0A%0A    @Test%0A    public void test1() throws UnsupportedEncodingException %7B%0A        String url = %22http://localhost:8080/test.do?param=1&key=2%22;%0A        log.info(%22url = %22 + url);%0A        String encode = URLEncoder.encode(url, %22UTF-8%22);%0A        log.info(%22encode =  %22 + encode);%0A        String decode = URLDecoder.decode(encode, %22UTF-8%22);%0A        log.info(%22decode%22 + decode);%0A    %7D%0A%0A%7D%0A

add UrlEncoding