摘要:
/*数据量过大,分批次插入*/ //限制数每次插入量 int dataLimit = 100; //数据总大小 int size = list.size(); //是否有必要分批 if (size <= dataLimit) { //插入数据到数据库 xxxxRepository.saveLists 阅读全文
摘要:
Instant start = Instant.now(); // XXXXXXXX(你的代码) Instant end = Instant.now(); //时间搓对象 Duration timeElapsed = Duration.between(start, end); //不同格式展示,下面 阅读全文