Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body") at com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:82) at Application.main
有人碰到我這種情形嗎,無法獲取天氣
2022-03-15
包沒問題,演示中缺少了 年 的輸出,你把對應(yīng)位置的操作補上就可以運行了