springboot调用第三方查询天气.zip

preview
共27个文件
java:9个
class:9个
xml:6个
需积分: 0 32 下载量 77 浏览量 更新于2020-08-14 1 收藏 24KB ZIP 举报
具体业务逻辑 1.需要cityName 2.需要网址 http://wthrcdn.etouch.cn/weather_mini?city=赣州 3.请求 一般使用httpclient,springboot通过restTemplate 来请求 4.获取请求的body 5.通过ObjectMapper把请求的body转成ResponseResult 6.objectMapper.readValue(待转数据,哪个类.class);
身份认证 购VIP最低享 7 折!
30元优惠券