Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Bean
- public TaskExecutor taskExecutor() {
- ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
- taskExecutor.setCorePoolSize(10);
- taskExecutor.setMaxPoolSize(50);
- taskExecutor.setQueueCapacity(10);
- taskExecutor.setThreadNamePrefix("default-thread-pool-");
- taskExecutor.initialize();
- return taskExecutor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement