public void getToken(){
            String json = getJedis().get("f2b9152f36424e8b8a454df9b50eb743");
            JSONObject jsonobj = JSONObject.fromObject(json);// 将字符串转化成json对象
            String name = jsonobj.getString("httpRefreshToken");// 获取字符串。
            String userId = jsonobj.getString("id");// 获取字符串。
            System.out.println("token:"+name);
            System.out.println("userId:"+userId);
        }

 

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2021-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-12-06
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-01-01
  • 2021-12-06
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案