今天调用接口总是出现返回这样一个页面
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.6.0</center>
</body>
</html>
最后解决方法:是因为没有配置host,配置方法win7(我的是win7)
找到C:\Windows\System32\drivers\etc下hosts文件,将你所需要配置的网站ip和域名配置进去(hosts文件里面有example事例)