07 2021 档案
摘要:1.@RestControllerAdvice,RestController的增强类,可用于实现全局异常处理器 2.@ExceptionHandler,统一处理某一类异常,从而减少代码重复率和复杂度,比如要获取自定义异常可以@ExceptionHandler(BusinessException.cl
阅读全文
摘要:public void dealGovernanceStrategyNew(List<StrategyStreamOperation> commonAll, StrategyDetail strategyDetail, List<String> instanceList) { if (Objects
阅读全文
摘要:// 多线程处理 public class DySchedule { private static AtomicInteger line = new AtomicInteger(0); static ExecutorService pool = Executors.newFixedThreadPoo
阅读全文
摘要:/** * 使用java8 CompletableFuture.runAsync实现 多线程处理,获取治理任务明细 * 使用线程安全list synchronizedList * @param env * @param systemEnNameList * @param ldcList * @par
阅读全文
摘要:public class DySchedule { private static AtomicInteger line = new AtomicInteger(0); static ExecutorService pool = Executors.newFixedThreadPool(100); p
阅读全文
摘要:public class ListSplitUtil { /** * 拆分 * * @param allList allList * @param limitCount limitCount * @param <T> T * @return List */ public static <T> Lis
阅读全文

浙公网安备 33010602011771号