赞
踩
JDK11版本中针对sun.misc.BASE64Encoder 使用方法进行了修改升级,
JDK1.8中:
- BASE64Decoder decoder = new BASE64Decoder();
- byte[] bytes = decoder.decodeBuffer(str);
BASE64Decoder decoder = new BASE64Decoder();
byte[] bytes = decoder.decodeBuffer(str);
JDK11中变更为:
- Base64.Decoder decoder = Base64.getMimeDecoder();
- byte[] bytes = decoder.decode(str);
Base64.Decoder decoder = Base64.getMimeDecoder();
byte[] bytes = decoder.decode(str);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。