Thread: SimpleAsyncTaskExecutor-8 running task 6. Thread: SimpleAsyncTaskExecutor-6 running task 7. Thread: SimpleAsyncTaskExecutor-10 Task finished 0 Task finished 1 Task finished 2 Task finished 3 Task finished 4 running task 5. Thread: SimpleAsyncTaskExecutor-9 running task 9. When you annotate a method with Async annotation, it creates a proxy for that object based on proxyTargetClass property. Thread: SimpleAsyncTaskExecutor-2 running task 8. Thread: SimpleAsyncTaskExecutor-3 running task 1. Thread: SimpleAsyncTaskExecutor-4 running task 2. Thread: SimpleAsyncTaskExecutor-5 running task 3. Thread: SimpleAsyncTaskExecutor-1 running task 4. Package import .annotation.Autowired import import .AnnotationConfigApplicationContext import .Bean import .Configuration import .AsyncTaskExecutor import .SimpleAsyncTaskExecutor import .TaskExecutor import .ThreadPoolTaskExecutor import import import .* public class AsyncTaskExecutorExample Output running task 0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |