com.sun.crypto.provider.SunJCE()报错
eclipse新import一个项目,发现某个类报错,进去查看发现是因为com.sun.crypto.provider.SunJCE(),找不到这个API。
解决办法:
Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings