String转Base64
public String decoder(String endcoderStr) throws IOException {
return Base64.getEncoder().encodeToString(endcoderStr.getBytes("utf-8")).replaceAll("\\+","-").replaceAll("/", "_").replaceAll("=", Strings.EMPTY);
}
什么是 URL 安全的 BASE64 编码?-腾讯云