Import von bestehenden CSV-Dateien

- CSV-Dateien im Verzeichniss "import" werden automatisch eingelesen
This commit is contained in:
Matthias Engelien
2024-09-08 15:13:20 +02:00
parent 1f7dfee78f
commit a0cf2d1854
14 changed files with 409 additions and 12 deletions

35
pom.xml
View File

@@ -22,6 +22,7 @@
</properties>
<dependencies>
<!-- Spring libs -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@@ -30,18 +31,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>
<!-- CSV handling -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-csv</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- OpenAPI generation -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
@@ -52,7 +47,18 @@
<artifactId>jackson-databind-nullable</artifactId>
<version>0.2.6</version>
</dependency>
<!-- DB driver - change to other driver on DB change -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<!-- confinience -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- testing -->
<dependency>
@@ -60,6 +66,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@@ -79,7 +90,7 @@
</inputSpec>
<generatorName>spring</generatorName>
<apiPackage>de.etecture.ga.api</apiPackage>
<modelPackage>de.etecture.ga.model</modelPackage>
<modelPackage>de.etecture.ga.dto</modelPackage>
<supportingFilesToGenerate>
ApiUtil.java
</supportingFilesToGenerate>