Select the annotation that makes the runTask method run asynchronously.
Java
import org.springframework.scheduling.annotation.Async;
@Component
@EnableAsync
public class Runner implements CommandLineRunner {
_____________
private void runTask() {
System.out.println("Task runnings!");
}
}
Kotlin
import org.springframework.scheduling.annotation.Async
@Component
@EnableAsync
class Runner : CommandLineRunner {
_____________
fun runTask() {
println("Task runnings!")
}
}