Documentation

This commit is contained in:
Matthias Engelien
2024-09-16 07:59:27 +02:00
parent 86ecf3b317
commit ebc66ff8f6
11 changed files with 188 additions and 49 deletions

View File

@@ -0,0 +1,26 @@
package de.etecture.ga.config;
import org.springframework.stereotype.Component;
import de.etecture.ga.service.GarageImportService;
import jakarta.annotation.PostConstruct;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
/**
* Import data on startup.
* This can be used to import old appointments.
*/
@Slf4j
@Component
@AllArgsConstructor
public class InitData {
private final GarageImportService importService;
@PostConstruct
private void importData() {
importService.importGarageData();
}
}