Error while extracting response for type [class cn.hutool.json.JSONArray] and content type [applicat

在使用restTemplate调用get方法时,报错:

Error while extracting response for type [class cn.hutool.json.JSONArray] and content type [application/json;charset=UTF-8]

原因是反射类写的的JSONArray.class,而实际上应该写JSONObject.class才行,修改后就不再报错

猜你喜欢

转载自blog.csdn.net/qq_41566366/article/details/126994022