将json字符串转化成Base64编码(重点)

Base64.encode(json)

String base=Base64.decode(jsonResult).toString();

 

包使用的是   import cn.hutool.core.codec.Base64;

你可能感兴趣的:(java)