国密插件启动报错-bcprov-jdk16兼容问题
1.报错
国密插件的包和bcprov-jdk16有冲突,会报以下错误:
java.lang.SecurityException: class "org.bouncycastle.crypto.digests.GeneralDigest"'s signer information does not match signer information of other classes in the same package
2.解决
排除冲突的包,比如:
<exclusions>
<exclusion>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
</exclusion>
</exclusions>