|
@ -62,7 +62,7 @@ public class MyCorsFilter {
|
62
|
62
|
return registrationBean;
|
63
|
63
|
}
|
64
|
64
|
|
65
|
|
@Bean
|
|
65
|
/* @Bean
|
66
|
66
|
public ThreadPoolTaskExecutor executor(){
|
67
|
67
|
ThreadPoolTaskExecutor executor=new ThreadPoolTaskExecutor();
|
68
|
68
|
executor.setCorePoolSize(10); //核心线程数
|
|
@ -72,5 +72,5 @@ public class MyCorsFilter {
|
72
|
72
|
executor.setThreadNamePrefix("fsx-Executor-"); //指定用于新创建的线程名称的前缀。
|
73
|
73
|
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
|
74
|
74
|
return executor;
|
75
|
|
}
|
|
75
|
}*/
|
76
|
76
|
}
|