C:\Java\JDK9\bin\java.exe?-javaagent:C:\Java\IDEA\lib\idea_rt.jar=53667:C:\Java\IDEA\bin?-Dfile.encoding=UTF-8?-classpath?C:\Live_java\weather\out\production\weather;C:\Live_java\weather\lib\weather-util.jar?com.china.weather.Application查詢最近天氣預報:輸入1:查詢未來24小時天氣預報輸入2:查詢未來3天天氣預報輸入3:查詢未來7天天氣預報請輸入您的選擇:1用戶輸入數(shù)字:1請輸入城市名稱查詢天氣預報:北京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?com.china.weather.Application.main(Application.java:27)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:34) at?com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:63) ...?1?moreCaused?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:31) ...?2?moreProcess?finished?with?exit?code?1
2021-06-30
環(huán)境對不對哦