@Test
public void test() throws Exception {
UriComponents components = UriComponentsBuilder.fromUriString("http://www.freeism.co.kr/test?id=1000").query("name=freeism").build();
System.out.println(components.toUriString());
UriComponents components2 = UriComponentsBuilder.fromUriString("http://www.freeism.co.kr/test").query("name=freeism").build();
System.out.println(components2.toUriString());
UriComponents components3 = UriComponentsBuilder.fromUriString("http://www.freeism.co.kr/test?id=1000").query(
"name=freeism&email=freeism@freeism.co.kr").build();
System.out.println(components3.toUriString());
List<NameValuePair> list = Lists.newArrayList();
list.add(new BasicNameValuePair("name", "freeism"));
URIBuilder builder = new URIBuilder("http://www.freeism.co.kr/test?id=1000").addParameters(list);
System.out.println(builder.build());
URIBuilder builder2 = new URIBuilder("http://www.freeism.co.kr/test").addParameters(list);
System.out.println(builder2.build());
list.add(new BasicNameValuePair("email", "freeism@freeism.co.kr"));
URIBuilder builder3 = new URIBuilder("http://www.freeism.co.kr/test?id=1000").addParameters(list);
System.out.println(builder3.build());
}