spring StopWatch 用法

StopWatch sw = null; try{ //开始执行程序 isRunning = true; for(Integer kind : kindList){ sw = new StopWatch("PermissionViewGenerateJos[kind = " + kind + "]"); sw.start("PermissionViewGenerateJos..."); permissionViewService.generatorUserResourcePermissionView(kind, listUser); sw.stop(); fileLogger.info(sw.toString()); consoleLogger.info(sw.toString()); } }catch(Exception e){ consoleLogger.error(e); fileLogger.error(e); }finally{ isRunning = false; }

你可能感兴趣的:(spring,exception,null,Integer)