Added structare for tour endindgs

This commit is contained in:
Filip Izydorczyk 2021-01-03 18:06:25 +01:00
parent 44f8c610d9
commit a6e6618202
1 changed files with 11 additions and 0 deletions

View File

@ -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 * * *";
}
}