摘要:
环境:MySQL5.7版本 先生成一组测试数据 public static int randAge(){ return new Random().nextInt(100); } public static char randScore(){ int i = new Random().nextInt( 阅读全文
摘要:
一、Synchronized解决 import java.util.concurrent.*; public class Test { public static void main(String[] args) throws Exception { ExecutorService pool = E 阅读全文