microservices-platform icon indicating copy to clipboard operation
microservices-platform copied to clipboard

misc包下的Base64Encode/Decode工具可以改成util包的来适配11版本以上的jdk

Open xwjluck opened this issue 1 year ago • 1 comments

jdk9+移除了misc包下的base64编码与解码 涉及 com.central.common.utils.RsaUtils com.sso.demo.controller.ApiController 可以考虑以下方式兼容 Base64.Encoder encoder = Base64.getEncoder(); String encode = encoder.encodeToString(text2.getBytes());

Base64.Decoder decoder = Base64.getDecoder(); byte[] decode = decoder.decode(encodeValue2);

xwjluck avatar Mar 16 '23 13:03 xwjluck

thx建议,如果方便的话您可以直接提PR

zlt2000 avatar May 16 '23 01:05 zlt2000