报错如下
'HttpClient()' has protected access in 'sun.net.www.http.HttpClient'
代码
import sun.net.www.http.HttpClient;
HttpClient client=new HttpClient();
public String HttpPost(String url, Map<String, String> DataParams, Map<String, String> Headers) throws IOException {
HttpClient client=new HttpClient();
return"";
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…