当试图读取序列化数据时,jar抛出ClassNotFoundException。但是,如果我使用自己的序列化逻辑而不使用jar,那么应用程序就能工作。java.lang.ClassNotFoundException: com.example.result.GenericResult
at java.base&
我知道我可以从StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();获得方法和类名,但这不是我想要的。我想要类对象,这样我就可以访问他的接口、注释等等.我看到了这个问题,但这只是为了类名。to get the methodname,
// the interface of the class and an annotation fr