package core; import core.entities.RoleEntity; import core.entities.UserRole; 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; @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.scheduleStartingTask("Finishing ConceptCreator"); }; } }