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() throws Exception
      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.
      Throws:
      Exception
    • runOnStartupInProductionOnly

      public void runOnStartupInProductionOnly() throws Exception
      Throws:
      Exception