java.security.NoSuchAlgorithmException: No such algorithm: SM2 原因是缺少依赖,将bcprov-jdk15to18-1.68.jar这个包放在 /jre/lib/ext这个目录下,重启应用。