Class DiningStartup

java.lang.Object
edu.ucsb.cs156.dining.startup.DiningStartup

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

    • DiningStartup

      public DiningStartup()
  • Method Details

    • alwaysRunOnStartup

      @EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void alwaysRunOnStartup()
      Called once at application startup time. Loads all emails in ADMIN_EMAILS into the Admin table, then starts a background job that downloads the current month's menu items.