//拼接请求地址
StringBuffer buffer = new StringBuffer();
buffer.append("https://api.weixin.qq.com/ cgi-bin/token" );
buffer.append(" ?grant_type=client_credential");
buffer.append( "&appid=%s");
buffer. append("&secret=%s ");
//设置路径参数
string url = string.format( buffer.toString(),
ConstantPropertiesUtil.ACCESS_KEY_ID,
ConstantPropertiesutil.ACCESS_KEY_SECRET);
java字符串处理(/s 替换)