SM2ParameterSpec parameterSpec = new SM2ParameterSpec(userId); Signature signer = Signature.getInstance("SM3withSM2", "BC"); signer.setParameter(parameterSpec);
An error is reported when the Spring Framework is upgraded from 5.x to 6.0
"java.security.InvalidAlgorithmParameterException: only SM2ParameterSpec supported"
The local ut is normal, but the deployment to the online environment is abnormal.
Can this information help analyze the root cause?