和以前一样:关注类加载器层次结构!
new URLClassLoader(new URL[] {new File("c:/pos/example.jar").toURI().toURL()}, PopperServlet.class.getClassloader());做到了。但是令人惊讶的是,没有找到注解而是a
ClassNotFoundException或
NoClassDefError,这就是我在加载类时未找到注解的期望值…

和以前一样:关注类加载器层次结构!
new URLClassLoader(new URL[] {new File("c:/pos/example.jar").toURI().toURL()}, PopperServlet.class.getClassloader());做到了。但是令人惊讶的是,没有找到注解而是a
ClassNotFoundException或
NoClassDefError,这就是我在加载类时未找到注解的期望值…