报错
java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) ~[na:1.8.0_71] at javax.crypto.Cipher.implInit(Cipher.java:805) ~[na:1.8.0_71] at javax.crypto.Cipher.chooseProvider(Cipher.java:864) ~[na:1.8.0_71] at javax.crypto.Cipher.init(Cipher.java:1396) ~[na:1.8.0_71] at javax.crypto.Cipher.init(Cipher.java:1327) ~[na:1.8.0_71]
解决方案
下载lib包
替换jdk安装目录下 jre* /lib/security 中的 local_policy.jar 和 US_export_policy.jar 两个jar包
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/17772.html