Class DataLoader

java.lang.Object
net.daveray.rewardsapi.util.DataLoader
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Component @Configuration public class DataLoader extends Object implements org.springframework.boot.CommandLineRunner
DataLoader loads batch data into the database using the repository
by reading a file in src/main/resources/rewards-api_transaction-list.json
if the file is not present, calls DataWrangler to generate the file
Since:
November 2023
  • Constructor Details

    • DataLoader

      public DataLoader()
  • Method Details

    • run

      public void run(String... args)
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner