Spring, Spring Boot, Spring Framework, Java, Programming.
will not be blocked by the potentially long-running task2(). When using the @Async annotation, Spring by default creates an Executor that has no limit on the number of threads it can create. As a result, if your job is triggered more frequently than it completes, it may lead to memory leaks due to