Access restriction: The method encode(byte[]) from the type CharacterEncoder is not accessible due to restriction on required library D:\jdk1.6.0_21\jre\lib\rt.jar
今天使用BASE64转码,方式引用后Java类报错,如下图:
查了查说是Eclipse配置的错误,默认的配置将调用一些访问受限的API设成了ERROR,只要设置为warnning即可,如下图:
解决方案参考:https://blog.csdn.net/fuxuejun/article/details/6225210