报错如下
'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"";
}