项目启动能都正常启动,但是有些接口会报错Could not initialize class com.antherd.smcrypto.sm2.Sm2。
最终在大佬的帮助下看到一篇文章:问题排查-sm2和sm3加密报错[Could not initialize class]_could not initialize class com.antherd.smcrypto.sm-CSDN博客
注意到是不是因为jdk版本的问题,我自己用的是17,改成1.8后确实就不报错了
项目启动能都正常启动,但是有些接口会报错Could not initialize class com.antherd.smcrypto.sm2.Sm2。
最终在大佬的帮助下看到一篇文章:问题排查-sm2和sm3加密报错[Could not initialize class]_could not initialize class com.antherd.smcrypto.sm-CSDN博客
注意到是不是因为jdk版本的问题,我自己用的是17,改成1.8后确实就不报错了