Class CoursesStartup

java.lang.Object
edu.ucsb.cs156.courses.startup.CoursesStartup

@Component public class CoursesStartup extends Object
This class contains a `run` method that is called once at application startup time.
  • Constructor Details

    • CoursesStartup

      public CoursesStartup()
  • Method Details

    • alwaysRunOnStartup

      public void alwaysRunOnStartup()
      Called once at application startup time . Put code here if you want it to run once each time the Spring Boot application starts up in all environments.
    • runOnStartupInProductionOnly

      public void runOnStartupInProductionOnly()
      Called once at application startup time . Put code here if you want it to run once each time the Spring Boot application starts up but only in production.