tiny-sexyboot/springboot_logs/src/main/java/demo/Application.java
// make one executor for async calls
make one executor for async calls
make one executor for async calls
@Bean
    public Executor asyncExecutor() {
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.setTaskDecorator(new AsyncTaskDecorator());
        executor.initialize();
        return executor;
    }
@ Bean public Executor asyncExecutor ( ) { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor ( ) ; executor . setTaskDecorator ( new AsyncTaskDecorator ( ) ) ; executor . initialize ( ) ; return executor ; }
make one executor for async calls
make one executor for async calls
// set decorator for extra work when running