java常用配置类线程池配置<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<全局异常捕捉处理>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>初始化操作
线程池配置@Configurationpublic class ExecutorConfig { /** * 默认线程池线程池 * * @return Executor */ @Bean public ThreadPoolTaskExecutor defaultThreadPool() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();