40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package core;
|
|
|
|
import core.entities.RoleEntity;
|
|
import core.entities.UserRole;
|
|
import core.entities.timemanager.AdvancedTaskSchedule;
|
|
import core.repositories.RoleRepository;
|
|
import core.repositories.UserRepository;
|
|
import core.services.PropertyService;
|
|
import core.services.TaskScheduleService;
|
|
import core.services.ntfy.TaskSchedulingService;
|
|
import org.springframework.boot.CommandLineRunner;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
@SpringBootApplication
|
|
@EnableScheduling
|
|
public class DemoApplication{
|
|
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(DemoApplication.class, args);
|
|
}
|
|
|
|
|
|
@Bean
|
|
public CommandLineRunner init(TaskSchedulingService taskSchedulingService) {
|
|
return args -> {
|
|
taskSchedulingService.scheduleStartReminders();
|
|
};
|
|
}
|
|
|
|
|
|
}
|