亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

依舊報錯,是不是云的接口變了

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:78)

at com.imooc.weather.Application.main(Application.java:25)

Caused by: java.lang.RuntimeException: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body")

at com.imooc.weather.impl.WeatherUtilsImpl.getValue(WeatherUtilsImpl.java:39)

at com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:55)

... 1 more

Caused by: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body")

at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2410)

at ognl.ASTProperty.getValueBody(ASTProperty.java:114)

at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)

at ognl.SimpleNode.getValue(SimpleNode.java:258)

at ognl.ASTChain.getValueBody(ASTChain.java:141)

at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)

at ognl.SimpleNode.getValue(SimpleNode.java:258)

at ognl.Ognl.getValue(Ognl.java:467)

at ognl.Ognl.getValue(Ognl.java:569)

at ognl.Ognl.getValue(Ognl.java:539)

at com.imooc.weather.impl.WeatherUtilsImpl.getValue(WeatherUtilsImpl.java:36)

... 2 more? ? 不知道是不是最新的返回的參數變了,改了調試地址url ,但是又有了新的問題?

搜索

復制

正在回答

2 回答

在云市場那邊有多個易源天氣預報的接口,找到URL跟老師一樣的那個”https://saweather.market.alicloudapi.com“,重新購買就可以了

0 回復 有任何疑惑可以回復我~

搞定了。。。還是那個新地址的問題,注意要把新地址里面的http(s)改為https,其次地址后面有個?area=別漏了

搜索

復制

0 回復 有任何疑惑可以回復我~
#1

星期9

文件不是只讀嗎,不能修改啊
2024-03-09 回復 有任何疑惑可以回復我~
#2

愛吃米粉的繆繆

只讀的,你咋改的?
2024-04-24 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

依舊報錯,是不是云的接口變了

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號