timemanager/backend/src/main/java/core/DemoApplication.java
Sebastian Böckelmann 14aabc483f
Some checks failed
Java CI with Maven / test (push) Failing after 50s
Java CI with Maven / build-and-push-frontend (push) Successful in 8s
Java CI with Maven / build-and-push-backend (push) Successful in 7s
Load basic ntfy values from environment
2024-03-14 10:32:29 +01:00

33 lines
1005 B
Java

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");
};
}
}