Enable Scheduling

    0

    0

    prachi chittora

    The @EnableScheduling and @EnableJpaRepositories annotations enable the deployment of Java Service containers with the bean-based legacy scheduling framework and the persistence layer of the Java Persistence API. The SpringBootApplication class is the class that represents the Spring Boot application. The main method starts the Java Service container and the application.

    @EnableScheduling
    @EnableJpaRepositories
    @SpringBootApplication
    public class PrimeJavaWebserviceApplication  extends SpringBootServletInitializer {
    
      public static void main(String[] args) {
        SpringApplication.run(PrimeJavaWebserviceApplication.class, args);
      }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.