07 2021 档案
摘要:首发于Enaium的个人博客 public class Server { public static void main(String[] args) { EventLoopGroup eventLoopGroup = new NioEventLoopGroup(); ServerBootstrap
阅读全文
摘要:首发于Enaium的个人博客 继续使用上个文章的类容器 创建一个注解 @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface Autowired { } 遍历所有字段包括私有的 private
阅读全文
摘要:首发于Enaium的个人博客 新建2个类 public class Test1 { } public class Test2 { public void render() { System.out.println("Test2"); } } public class ClassContainer {
阅读全文
摘要:首发于Enaium的个人博客 public class WalkClasspathAllClasses { public static void main(String[] args) throws URISyntaxException, IOException { List<URL> urls =
阅读全文
摘要:首发于Enaium的个人博客 使用树API来生成一个类 public static void main(String[] args) { ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS); ClassNode cl
阅读全文