摘要: DBUtils的使用 QueryRunner的插入使用 @Test public void testInsert() throws Exception { QueryRunner queryRunner = new QueryRunner(); String insert = "insert int 阅读全文
posted @ 2022-03-09 21:10 CoderCatIce 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Druid线程池创建Connection 代码实现 public class DruidTest { public static void main(String[] args) throws Exception { new DruidTest().getConnection(); } public 阅读全文
posted @ 2022-03-09 19:50 CoderCatIce 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 代理模式 静态代理 /* * 代理模式 * */ public class Demo { public static void main(String[] args) { // 实例化被代理类 Demo01Impl demo01 = new Demo01Impl(); // 使用被代理类实例化代理类 阅读全文
posted @ 2022-03-09 12:15 CoderCatIce 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 反射的使用 拿到此类的接口/包/注解 import java.lang.annotation.Annotation; @Deprecated public class demo6 implements Runnable { @Override public void run() { } public 阅读全文
posted @ 2022-03-09 10:00 CoderCatIce 阅读(16) 评论(0) 推荐(0) 编辑