摘要:
场景:tom欠jerry1000元,通过银行转账,此过程需要两条sql语句实现 1.update account set money = money - 1000 where name = 'tom'; 2.update account set money = money + 1000 where 阅读全文
摘要:
main线程类: public class DemoThreadLocal { public static void main(String[] args) { ThreadLocal<String> tl = new ThreadLocal<>(); //获取当前main线程对象绑定的值 Stri 阅读全文