java.lang.Object
org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup.AppStartup
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Component @Profile("!test") public class AppStartup extends Object implements org.springframework.boot.CommandLineRunner
Class that populates the database with test data
Since:
5.1.24
Version:
1.0
Author:
Harry L.X and Lars M.L.N
  • Constructor Details

    • AppStartup

      public AppStartup()
  • Method Details

    • run

      public void run(String... args)
      Runs on application startup. Populates database with test data if it does not already exist
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Parameters:
      args - Command line arguments