微信接口的https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code报no suitable HttpMessageConverter found for response type

通过code来获取access_token时报no suitable HttpMessageConverter found for response type

 

  微信通过接口返回的result无法直接用JSONObject,要先用String接收,再调用JSONObject.parseObject()来转换回JSONObject再获取里面的数据

posted @ 2020-07-22 16:30  HuiT  阅读(3255)  评论(0编辑  收藏  举报