@Test
public void testURLFormat(){
String url="www.witon.com?rant_type=client_credential&" + "appid=%s" + "&" + "secret=%s";
System.out.println(String.format(url, 123,123));
}
结果:
www.witon.com?rant_type=client_credential&appid=123&secret=123