java.net.MalformedURLException: Protocol not found:

出现java.net.MalformedURLException: Protocol not found: 

一般来说是url地址没有写对。没有以http://开头,或者出现空格等格式问题:

要看清楚 错误信息中的网址,如果出现类似于

Caused by: java.net.MalformedURLException: Protocol not found: %20http://wap.........(后面省略)

那就是http网站前面有空格造成的错误!

原文地址:https://www.cnblogs.com/nova-/p/3632989.html