Added structare for tour endindgs
This commit is contained in:
parent
44f8c610d9
commit
a6e6618202
@ -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 * * *";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user