关于sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

解决方法:

报错的写法:URL realUrl = new URL(url);

不报错写法:http://​www.yayihouse.com/yayishuwu/chapter/1662

猜你喜欢

转载自blog.csdn.net/qq_30908729/article/details/83619075