java.lang.IllegalArgumentException: protocol = http host = null

混江龙づ霸主 提交于 2019-12-05 01:11:57

I encountered this same exception when the URL started with http:/ instead of http://. e.g. http:/www.example.com

This was in the org.springframework.web.client.RestTemplate.exchange() method, so it's not quite the same context, but maybe a similar issue.

Mostly this error occur due to incorrect url. Make sure the Url that you are hitting is correct.As wsams mentioned try to check the // in your url if it is correct or not. Correct pattern is http://localhost:8080

Looks like your proxy host is not set. Try setting it, then it should work.

See this page for more information on proxy properties.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!