报错:
class "org.bouncycastle.asn1.ASN1Integer"'s signer information does not match signer information of other classes in the same package
本质:类加载器比对两个同名jar包时签名不一致
解决方案:
1、检查项目是否存在jar冲突。通过exclusion排除相关依赖
-
全局搜索
-
pom文件查找
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
</exclusion>
2、比对时与包名称无关,与是否包含这个类无关,只要包下的路径相同,就会比对同一个包路径下面的jar包的签名。
例如:类:ASN1Integer
bcprov-jdk15on.jar下路径org.bouncycastle.asn1.ASN1Integer
bcprov-jdk14.jar下路径org.bouncycastle.asn1无此类
包下的路径