摘要:首先分页参数放到ThreadLocal中,拦截执行的sql,根据数据库类型添加对应的分页语句重写sql,例如 select * from table where a 转换为(根据数据库类型添加对应语句): select count(*) from table where a 和 select * f
阅读全文
摘要:线程执行顺序 在做面试题的时候,发现有关线程执行顺序的一个常见考题:(纯纯考研审题) package link; public class Test { public static void main(String[] args) { Thread thread = new Thread() { @
阅读全文
摘要:1.对象::实例方法名 2.类名::静态方法名 3.类名::实例方法名 public class TestInstanceReference { public static void main(String[] args) { TestInstanceReference test = new Tes
阅读全文