Package net.daveray.rewardsapi.util
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
DataLoader
public DataLoader()
-
-
Method Details
-
run
- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner
-