Class AppStartup
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
AppStartup
public AppStartup()
-
-
Method Details
-
run
Runs on application startup. Populates database with test data if it does not already exist- Specified by:
run
in interfaceorg.springframework.boot.CommandLineRunner
- Parameters:
args
- Command line arguments
-