使用RestTemplate报301 Moved Permanently解决
问题描述今天想尝试使用今日头条的城市接口https://www.toutiao.com/stream/widget/local_weather/city/(获取到中国所有的省、城市)。浏览器直接访问的结果如下用RestTemplate直接访问这个地址,代码如下 RestTemplate restTemplate = new RestTemplate(); //消息头...
原创
2019-10-16 11:29:50 ·
3332 阅读 ·
0 评论