Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xwjluck opened this issue Mar 16, 2023 · 1 comment

Comments

@xwjluck
Copy link

xwjluck commented Mar 16, 2023

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);

@zlt2000
Copy link
Owner

zlt2000 commented May 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants