国密算法报错:java.lang.NoClassDefFoundError: org/bouncycastle/asn1/gm/GMNamedCurves

国密算法报错:java.lang.NoClassDefFoundError: org/bouncycastle/asn1/gm/GMNamedCurves

问题原因

包冲突问题,bcprov-jdk16不再更新了,请使用bcprov-jdk15on或者jdk15to18

maven依赖

 <!--国密-->
	<dependency>
        <groupId>org.bouncycastle</groupId>
        <artifactId>bcprov-jdk15to18</artifactId>
        <version>1.69</version>
    </dependency>

	<dependency>
        <groupId>cn.hutool</groupId>
        <artifactId>hutool-all</artifactId>
        <version>5.7.21</version>
    </dependency>

你可能感兴趣的:(编码笔记,java,maven,jar)