Cron macros

Report a typo

Complete the schedule with a cron macro so that it executes weekly.

Java
@Component
public class WeeklyBackupScheduler {
	
    @Async
    @Scheduled(cron="____________")
    public void startBackup() {
        System.out.println("Backup started!");
    }
	
}
Kotlin
@Component
class WeeklyBackupScheduler {

    @Async
    @Scheduled(cron = "____________")
    fun startBackup() {
        println("Backup started!")
    }
}
Select one option from the list
___

Create a free account to access the full topic