diff --git a/buisnesslogic/src/main/java/com/plannaplan/services/EventService.java b/buisnesslogic/src/main/java/com/plannaplan/services/EventService.java index 7569bd0..56a1cca 100755 --- a/buisnesslogic/src/main/java/com/plannaplan/services/EventService.java +++ b/buisnesslogic/src/main/java/com/plannaplan/services/EventService.java @@ -1,5 +1,6 @@ package com.plannaplan.services; +import org.springframework.context.annotation.Bean; // import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; @@ -14,4 +15,14 @@ public class EventService { public void collectGroupLosses() { System.out.println("Checking for groups"); } + + @Scheduled(cron = "#{@getTourValue}") + public void performAcceptAction() { + System.out.println("Checking for hahaha"); + } + + @Bean + public String getTourValue() { + return "0 6 18 * * *"; + } }